/* Shared premium layer for public storefront pages.
   Loaded after page CSS to upgrade presentation without changing PHP logic. */

body {
    background:
        radial-gradient(circle at 8% 10%, rgba(42, 143, 124, 0.1), transparent 26%),
        linear-gradient(180deg, #f8f6f0 0%, var(--sh-surface) 45%, #fff 100%);
}

.main-content {
    background: transparent;
}

.page-title,
.shop-hero-title,
.product-title,
.checkout-title,
.order-confirmation-title,
.auth-card h2,
.about-hero-content h1,
.about-section-header h2,
.about-text-block h2,
.vr-hero h1 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    line-height: 1.18;
    text-wrap: balance;
}

.about-hero-content h1 {
    color: #fff;
}

.page-title {
    margin-bottom: 1.75rem;
    font-size: clamp(2rem, 4vw, 3rem);
}

/* Full-bleed premium headers while keeping inner content aligned to the existing shell */
.container > .shop-hero,
.container > .about-hero {
    width: 100vw;
    max-width: 100vw;
    left: 50% !important;
    margin-left: 0 !important;
    transform: translateX(-50%) !important;
    border-radius: 0;
}

.shop-hero,
.about-hero {
    box-shadow: 0 28px 80px rgba(15, 18, 16, 0.14);
}

.shop-hero-inner,
.about-hero-content {
    max-width: var(--shell-max);
    margin: 0 auto;
    padding-left: var(--shell-pad);
    padding-right: var(--shell-pad);
}

.shop-hero {
    min-height: 310px;
    display: grid;
    align-items: end;
    background:
        radial-gradient(circle at 78% 16%, rgba(201, 162, 39, 0.14), transparent 28%),
        linear-gradient(145deg, var(--sh-topbar), var(--sh-accent-deep)) !important;
}

.shop-hero-inner {
    padding-top: clamp(3rem, 7vw, 5rem) !important;
    padding-bottom: clamp(2.25rem, 5vw, 3.75rem) !important;
}

.shop-hero-title {
    font-size: clamp(2rem, 4.5vw, 3.25rem) !important;
    line-height: 1.16 !important;
    letter-spacing: -0.02em !important;
    word-spacing: 0.03em !important;
}

.about-hero {
    min-height: min(560px, 62vh);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100vw !important;
    max-width: 100vw !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-left: 0 !important;
}

.about-hero-content {
    text-align: center;
    padding-top: clamp(3rem, 7vw, 5rem);
    padding-bottom: clamp(3rem, 7vw, 5rem);
}

.shop-toolbar,
.active-filters {
    border-bottom: 1px solid rgba(15, 18, 16, 0.08);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* Shared card language */
.product-card,
.cart-item,
.cart-summary,
.auth-card,
.auth-hero-panel,
.checkout-form,
.order-summary,
.product-summary,
.product-images-container,
.about-text-block,
.about-image-block,
.stat-card,
.value-card,
.team-card,
.vr-wrapper,
.vr-section,
.empty-cart,
.order-confirmation-card,
.account-card {
    border: 1px solid rgba(15, 18, 16, 0.08) !important;
    border-radius: 26px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 18px 58px rgba(15, 18, 16, 0.08) !important;
    overflow: hidden;
}

.product-card:hover,
.cart-item:hover,
.stat-card:hover,
.value-card:hover,
.team-card:hover {
    box-shadow: 0 28px 78px rgba(15, 18, 16, 0.13) !important;
    transform: translateY(-3px);
}

/* Shop grid polish */
.shop-products {
    background: transparent !important;
}

.shop-toolbar {
    top: 72px;
}

.shop-products-inner,
.cart-page,
.product-detail-page .container,
.auth-page,
.checkout-page,
.about-section,
.about-stats,
.about-values-section,
.vr-wrapper {
    position: relative;
}

.shop-products .products-grid {
    align-items: stretch;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    gap: clamp(1rem, 2vw, 1.35rem) !important;
}

.shop-products .product-card {
    overflow: hidden;
}

.shop-products .product-image {
    aspect-ratio: 1 / 0.88;
    height: auto !important;
}

.shop-products .product-image img {
    height: 100%;
    object-fit: cover;
}

.shop-products .product-info {
    display: flex;
    flex-direction: column;
    min-height: 190px;
    padding: 1rem !important;
}

.shop-products .product-name {
    display: -webkit-box;
    min-height: 2.8em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.shop-products .product-bottom {
    margin-top: auto;
}

/* Product detail */
.product-main {
    align-items: start;
}

.product-summary {
    position: sticky;
    top: calc(115px + 24px);
}

.main-image,
.product-thumbnails .thumbnail {
    border-radius: 22px !important;
}

/* Cart / checkout */
.cart-content,
.checkout-layout,
.checkout-grid {
    align-items: start;
}

.cart-summary,
.order-summary {
    position: sticky;
    top: calc(115px + 24px);
}

.cart-page,
.checkout-page {
    padding-top: clamp(2.5rem, 6vw, 4.5rem);
    padding-bottom: clamp(3rem, 7vw, 5rem);
}

.cart-content,
.checkout-form,
.checkout-layout,
.checkout-grid {
    gap: clamp(1.25rem, 3vw, 2rem) !important;
}

.cart-item {
    padding: clamp(1rem, 2vw, 1.35rem) !important;
}

.cart-summary,
.order-summary {
    padding: clamp(1.25rem, 3vw, 1.75rem) !important;
}

.quantity-btn,
.remove-btn,
.toolbar-btn,
.checkout-btn,
.continue-shopping,
.btn-primary,
.vr-btn-primary {
    border-radius: 999px !important;
}

/* Auth pages */
.auth-page {
    padding-top: clamp(3rem, 6vw, 5rem) !important;
    padding-bottom: clamp(3rem, 6vw, 5rem) !important;
}

.auth-hero-panel {
    color: #fff;
    background:
        radial-gradient(circle at 15% 12%, rgba(201, 162, 39, 0.18), transparent 34%),
        linear-gradient(145deg, var(--sh-ink), var(--sh-accent-deep)) !important;
}

.auth-hero-panel .muted,
.auth-hero-panel p {
    color: rgba(255, 255, 255, 0.72) !important;
}

.auth-card .card-body {
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.auth-hero-panel,
.auth-card {
    min-height: 100%;
}

.form-control,
.form-select,
.toolbar-search input,
.toolbar-select,
.checkout-page input,
.checkout-page select,
.checkout-page textarea,
.vr-field input,
.vr-field select,
.vr-field textarea {
    border-radius: 16px !important;
    border-color: rgba(15, 18, 16, 0.1) !important;
    background-color: rgba(255, 255, 255, 0.86) !important;
}

.form-control:focus,
.toolbar-search input:focus,
.checkout-page input:focus,
.checkout-page select:focus,
.checkout-page textarea:focus,
.vr-field input:focus,
.vr-field select:focus,
.vr-field textarea:focus {
    border-color: rgba(31, 107, 92, 0.45) !important;
    box-shadow: 0 0 0 4px rgba(31, 107, 92, 0.1) !important;
}

/* About */
.stats-grid,
.values-grid {
    align-items: stretch;
}

.about-section {
    background: transparent !important;
}

.about-container {
    max-width: var(--content-max, 1280px) !important;
}

.about-text-block {
    padding: clamp(1.5rem, 4vw, 2.75rem);
}

.about-image-block {
    min-height: 420px;
}

.about-stats {
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
    position: relative;
    background:
        radial-gradient(circle at 12% 12%, rgba(201, 162, 39, 0.16), transparent 30%),
        linear-gradient(145deg, var(--sh-ink), var(--sh-accent-deep)) !important;
}

.stat-card,
.value-card {
    height: 100%;
}

.about-stats .stat-card {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 18px 58px rgba(0, 0, 0, 0.16) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.about-stats .stat-number,
.about-stats .stat-label {
    color: #fff !important;
}

.about-stats .stat-label {
    opacity: 0.72;
}

.value-card {
    padding: clamp(1.35rem, 3vw, 2rem) !important;
}

/* Vendor registration */
.vr-wrapper {
    overflow: hidden;
    max-width: 980px !important;
    margin-top: clamp(2.5rem, 6vw, 4.5rem) !important;
    margin-bottom: clamp(3rem, 7vw, 5rem) !important;
    padding: 0 !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(15, 18, 16, 0.08) !important;
    border-radius: 34px !important;
    box-shadow: 0 30px 90px rgba(15, 18, 16, 0.12) !important;
}

.vr-form,
.vr-section-body {
    background: transparent !important;
}

.vr-hero {
    background:
        radial-gradient(circle at 80% 20%, rgba(201, 162, 39, 0.14), transparent 30%),
        linear-gradient(145deg, var(--sh-ink), var(--sh-accent-deep)) !important;
    color: #fff;
    margin: 0 0 1.5rem !important;
    padding: clamp(2rem, 5vw, 3.25rem) clamp(1rem, 4vw, 2rem) !important;
}

.vr-hero h1,
.vr-hero .vr-hero-badge {
    color: #fff !important;
}

.vr-hero p {
    color: rgba(255, 255, 255, 0.72) !important;
}

.vr-steps {
    padding: 0 clamp(1rem, 4vw, 2rem) !important;
}

.vr-form {
    padding: 0 clamp(1rem, 4vw, 2rem) clamp(1.25rem, 4vw, 2rem) !important;
}

.vr-section {
    border-radius: 26px !important;
}

/* Vendor login */
.vl-wrapper {
    max-width: 1080px !important;
    border: 1px solid rgba(15, 18, 16, 0.08) !important;
    border-radius: 30px !important;
    box-shadow: 0 28px 90px rgba(15, 18, 16, 0.12) !important;
}

.vl-brand-panel {
    background:
        radial-gradient(circle at 18% 12%, rgba(201, 162, 39, 0.16), transparent 32%),
        linear-gradient(145deg, var(--sh-ink), var(--sh-accent-deep)) !important;
}

.vl-form-panel {
    background:
        radial-gradient(circle at 100% 0%, rgba(31, 107, 92, 0.08), transparent 28%),
        #fff !important;
}

.vl-submit-btn {
    background: linear-gradient(135deg, var(--sh-accent), var(--sh-accent-deep)) !important;
    border-radius: 999px !important;
}

.vl-input-wrapper {
    border-radius: 16px !important;
}

/* Cart premium layout */
.cart-page {
    max-width: var(--content-max, 1280px) !important;
}

.cart-page .page-title,
.checkout-page .page-title {
    font-size: clamp(2rem, 4vw, 3rem) !important;
    color: var(--sh-ink) !important;
}

.cart-page .cart-content {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px) !important;
}

.cart-page .cart-items {
    border-radius: 30px !important;
    background: rgba(255, 255, 255, 0.84) !important;
    border: 1px solid rgba(15, 18, 16, 0.08) !important;
    box-shadow: 0 24px 70px rgba(15, 18, 16, 0.09) !important;
}

.cart-page .cart-item {
    grid-template-columns: 110px minmax(0, 1fr) auto !important;
    gap: 1.25rem !important;
    align-items: center !important;
}

.cart-page .cart-item .item-image {
    width: 96px !important;
    height: 96px !important;
    border-radius: 20px !important;
}

.cart-page .cart-summary {
    border-radius: 30px !important;
    background:
        radial-gradient(circle at 90% 0%, rgba(31, 107, 92, 0.08), transparent 28%),
        #fff !important;
}

.cart-page .cart-actions .checkout-btn {
    background: linear-gradient(135deg, var(--sh-accent), var(--sh-accent-deep)) !important;
}

/* Checkout premium layout */
.checkout-page {
    max-width: var(--content-max, 1280px) !important;
}

.checkout-content {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px) !important;
    align-items: start !important;
}

.checkout-form-container {
    min-width: 0 !important;
}

.form-section {
    border: 1px solid rgba(15, 18, 16, 0.08) !important;
    border-radius: 28px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 18px 58px rgba(15, 18, 16, 0.08) !important;
    padding: clamp(1.25rem, 3vw, 1.75rem) !important;
}

.order-summary {
    max-width: none !important;
    border-radius: 30px !important;
    background:
        radial-gradient(circle at 90% 0%, rgba(31, 107, 92, 0.08), transparent 28%),
        #fff !important;
}

.place-order-btn {
    background: linear-gradient(135deg, var(--sh-accent), var(--sh-accent-deep)) !important;
    border-radius: 999px !important;
}

@media (max-width: 992px) {
    .product-summary,
    .cart-summary,
    .order-summary {
        position: static;
    }

    .cart-page .cart-content,
    .checkout-content {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .shop-hero-inner,
    .about-hero-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .product-card,
    .cart-item,
    .cart-summary,
    .auth-card,
    .auth-hero-panel,
    .checkout-form,
    .order-summary,
    .product-summary,
    .product-images-container,
    .about-text-block,
    .about-image-block,
    .stat-card,
    .value-card,
    .team-card,
    .vr-wrapper,
    .vr-section {
        border-radius: 20px !important;
    }
}

/* ===== Site footer — enforce global color scheme (must load last) ===== */
.site-footer {
    margin-top: 0;
}

.footer-newsletter {
    background: linear-gradient(135deg, var(--sh-accent) 0%, var(--sh-accent-mid) 100%) !important;
}

.newsletter-input {
    font-family: var(--font-sans) !important;
}

.newsletter-btn {
    color: var(--sh-accent) !important;
    font-family: var(--font-sans) !important;
}

.newsletter-btn:hover {
    background: var(--sh-ink) !important;
    color: #fff !important;
}

.footer-main {
    background:
        radial-gradient(circle at 15% 0%, rgba(42, 143, 124, 0.18), transparent 28%),
        linear-gradient(135deg, var(--sh-ink) 0%, #0a0f0d 100%) !important;
}

.footer-heading::after {
    background: var(--sh-accent) !important;
}

.footer-social-link:hover {
    background: var(--sh-accent) !important;
    color: #fff !important;
}

.footer-links a::before {
    background: var(--sh-accent) !important;
}

.footer-contact li i {
    color: var(--sh-accent) !important;
}

.footer-app {
    background: var(--sh-topbar) !important;
    border-top-color: rgba(255, 255, 255, 0.05) !important;
    border-bottom-color: rgba(255, 255, 255, 0.05) !important;
}

.footer-app-text i {
    color: var(--sh-accent) !important;
}

.footer-bottom {
    background: var(--sh-ink) !important;
}

.footer-bottom-links a:hover {
    color: rgba(255, 255, 255, 0.85) !important;
}

.newsletter-inner.newsletter-inner--premium {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 420px);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
    padding: clamp(2rem, 4vw, 3rem) 0;
}

.newsletter-inner.newsletter-inner--premium .newsletter-text {
    align-items: flex-start;
}

.newsletter-inner.newsletter-inner--premium .newsletter-text h3 {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 600;
}

.newsletter-inner.newsletter-inner--premium .newsletter-form {
    max-width: none;
}

.footer-grid {
    align-items: start;
}

@media (max-width: 768px) {
    .newsletter-inner.newsletter-inner--premium {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .newsletter-inner.newsletter-inner--premium .newsletter-text {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-inner.newsletter-inner--premium .newsletter-form {
        flex-direction: column;
    }

    .newsletter-inner.newsletter-inner--premium .newsletter-input,
    .newsletter-inner.newsletter-inner--premium .newsletter-btn {
        width: 100%;
        border-radius: 12px;
    }

    .newsletter-inner.newsletter-inner--premium .newsletter-input {
        border-right: 2px solid rgba(255, 255, 255, 0.25);
    }
}
