:root {
    /* Apple Typography */
    --stripe-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
    --stripe-font-mono: "SF Mono", "Menlo", "Monaco", "Courier New", monospace;
    
    /* Primary Colors */
    --stripe-purple: #0071e3;
    --stripe-purple-hover: #0077ED;
    --stripe-navy: #1d1d1f;
    --stripe-white: #ffffff;
    
    /* Brand & Dark */
    --stripe-brand-dark: #000000;
    --stripe-dark-navy: #1d1d1f;
    
    /* Accent Colors */
    --stripe-ruby: #e02020;
    --stripe-magenta: #e02020;
    --stripe-magenta-light: #fef0f0;
    
    /* Neutral Scale */
    --stripe-heading: #1d1d1f;
    --stripe-label: #86868b;
    --stripe-body: #515154;
    --stripe-success: #15be53;
    --stripe-success-text: #108c3d;
    
    /* Surface & Borders */
    --stripe-border: #d2d2d7;
    --stripe-border-focus: #0071e3;
    
    /* Shadows */
    --stripe-shadow-standard: 0 4px 24px rgba(0,0,0,0.06);
    --stripe-shadow-ambient: 0 2px 12px rgba(0,0,0,0.04);
    --stripe-shadow-hover: 0 8px 32px rgba(0,0,0,0.1);
    
    /* Radii */
    --stripe-radius-sm: 8px;
    --stripe-radius-md: 12px;
    --stripe-radius-lg: 18px;
}

body.mall-page {
    font-family: var(--stripe-font);
    color: var(--stripe-body);
    background-color: #f5f5f7;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
    line-height: 1.47;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6, .display-font {
    color: var(--stripe-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1, .pdp-title {
    font-size: 48px;
    letter-spacing: -0.03em;
    line-height: 1.08;
    font-weight: 600;
}

h2, .section-title {
    font-size: 32px;
    letter-spacing: -0.02em;
    line-height: 1.12;
    font-weight: 600;
}

h3, .card-title {
    font-size: 24px;
    letter-spacing: -0.01em;
    line-height: 1.16;
    font-weight: 600;
}

.price, .tabular-nums {
    font-feature-settings: "tnum";
}

/* --- Navigation --- */
.mall-navbar {
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 0.5rem 0;
    box-shadow: none;
}

.mall-navbar .navbar-brand {
    font-weight: 600;
    font-size: 21px;
    color: #1d1d1f !important;
    letter-spacing: -0.01em;
}

.mall-navbar .nav-link {
    color: #1d1d1f !important;
    font-size: 12px;
    font-weight: 400;
    transition: color 0.2s, opacity 0.2s;
    opacity: 0.8;
}

.mall-navbar .nav-link:hover {
    color: #000000 !important;
    opacity: 1;
}

.mall-navbar i.fas, .mall-navbar i.far {
    color: #1d1d1f !important;
    opacity: 0.8;
}

.mall-navbar i.fas:hover, .mall-navbar i.far:hover {
    opacity: 1;
}

.mall-navbar .btn-outline-dark {
    border-color: #d2d2d7;
    color: #1d1d1f;
    border-radius: 980px;
    font-size: 12px;
}

.mall-navbar .btn-outline-dark:hover {
    background-color: #f5f5f7;
    color: #1d1d1f;
    border-color: #d2d2d7;
}

/* --- Buttons --- */
.btn-shopify-primary, .btn-primary {
    background-color: var(--stripe-purple);
    color: var(--stripe-white);
    border: none;
    border-radius: 980px;
    padding: 11px 22px;
    font-family: var(--stripe-font);
    font-weight: 400;
    font-size: 17px;
    transition: all 0.2s ease;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    line-height: 1.17;
}

.btn-shopify-primary.btn-sm, .btn-primary.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-shopify-primary:hover, .btn-primary:hover {
    background-color: var(--stripe-purple-hover);
    color: var(--stripe-white);
    transform: none;
    box-shadow: none;
}

.btn-shopify-primary:active, .btn-primary:active {
    transform: scale(0.98);
}

.btn-shopify-outline, .btn-outline-primary {
    background-color: transparent;
    color: var(--stripe-purple);
    border: 1px solid var(--stripe-purple);
    border-radius: 980px;
    padding: 11px 22px;
    font-family: var(--stripe-font);
    font-weight: 400;
    font-size: 17px;
    transition: all 0.2s;
    line-height: 1.17;
}

.btn-shopify-outline.btn-sm, .btn-outline-primary.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-shopify-outline:hover, .btn-outline-primary:hover {
    background-color: var(--stripe-purple);
    color: var(--stripe-white);
    text-decoration: none;
}

/* --- Product Card (Apple Style) --- */
.shopify-card {
    border: none;
    background: var(--stripe-white);
    border-radius: var(--stripe-radius-lg);
    box-shadow: var(--stripe-shadow-ambient);
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
    position: relative;
    padding-bottom: 24px;
}

.shopify-card:hover {
    box-shadow: var(--stripe-shadow-hover);
    transform: translateY(-2px);
}

.product-img-wrap {
    position: relative;
    overflow: hidden;
    padding-bottom: 100%;
    background-color: var(--stripe-white);
    border-radius: var(--stripe-radius-lg) var(--stripe-radius-lg) 0 0;
}

.product-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.shopify-card:hover .product-img-wrap img {
    transform: scale(1.03);
}

.shopify-card-body {
    text-align: center;
    padding: 1.5rem 1.5rem 0 1.5rem;
}

.shopify-card-title {
    font-family: var(--stripe-font);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.19;
    letter-spacing: 0.01em;
    margin-bottom: 0.5rem;
    color: var(--stripe-heading);
    text-decoration: none;
    display: block;
}

.shopify-card-title:hover {
    color: var(--stripe-heading);
    text-decoration: underline;
}

.shopify-card-price {
    font-size: 17px;
    font-weight: 400;
    color: var(--stripe-body);
    font-feature-settings: "tnum";
}

.quick-add-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 980px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--stripe-heading);
    font-size: 16px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.shopify-card:hover .quick-add-btn {
    opacity: 1;
    transform: translateY(0);
}

.quick-add-btn:hover {
    background: var(--stripe-white);
    transform: scale(1.05);
}

/* --- Inputs & Forms --- */
.form-control, .form-select {
    border-radius: var(--stripe-radius-sm);
    border: 1px solid var(--stripe-border);
    background-color: var(--stripe-white);
    padding: 12px 16px;
    font-size: 17px;
    color: var(--stripe-heading);
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control::placeholder {
    color: var(--stripe-label);
}

.form-control:focus, .form-select:focus {
    border-color: var(--stripe-border-focus);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.2);
    outline: none;
}

.form-label {
    color: var(--stripe-heading);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* --- Badges --- */
.badge-success {
    background-color: rgba(21, 190, 83, 0.1);
    color: var(--stripe-success-text);
    border: none;
    padding: 4px 8px;
    border-radius: 980px;
    font-weight: 500;
    font-size: 12px;
}

/* --- Cart Drawer --- */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    max-width: 90%;
    height: 100%;
    background: var(--stripe-white);
    z-index: 1050;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.cart-drawer.active {
    right: 0;
}

.cart-drawer-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--stripe-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-drawer-title {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--stripe-heading);
    margin: 0;
}

.cart-drawer-close {
    background: transparent;
    border: none;
    border-radius: 980px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--stripe-body);
    transition: all 0.2s;
    background: #f5f5f7;
}

.cart-drawer-close:hover {
    background: #e8e8ed;
    color: var(--stripe-heading);
}

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--stripe-heading);
    text-decoration: none;
    margin-bottom: 4px;
    display: block;
}

.cart-item-price {
    font-size: 15px;
    color: var(--stripe-body);
    font-feature-settings: "tnum";
}

.qty-selector-sm {
    display: flex;
    border: 1px solid var(--stripe-border);
    border-radius: 980px;
    overflow: hidden;
}

.qty-selector-sm button {
    background: transparent;
    border: none;
    padding: 4px 12px;
    color: var(--stripe-heading);
}

.qty-selector-sm button:hover {
    background: #f5f5f7;
}

.qty-selector-sm input {
    width: 40px;
    border: none;
    border-left: 1px solid var(--stripe-border);
    border-right: 1px solid var(--stripe-border);
    text-align: center;
    font-size: 14px;
}

.cart-drawer-footer {
    padding: 2rem;
    border-top: 1px solid var(--stripe-border);
    background: #fbfbfd;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 21px;
    font-weight: 600;
    color: var(--stripe-heading);
}

/* --- Container & Utilities --- */
.container {
    max-width: 1080px;
}

.bg-light {
    background-color: #f5f5f7 !important;
}

.border {
    border-color: var(--stripe-border) !important;
}

/* Variant Selectors */
.variant-btn-group .btn-outline-dark {
    border-radius: 980px;
    border: 1px solid var(--stripe-border);
    color: var(--stripe-heading);
    margin: 4px;
    font-size: 14px;
}

.variant-btn-group .btn-check:checked + .btn-outline-dark {
    background-color: #1d1d1f;
    color: var(--stripe-white);
    border-color: #1d1d1f;
}

/* Hide annoying shadows on cards and default background if present */
.sa-card {
    background: #ffffff !important;
    border-radius: 18px !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04) !important;
    border: none !important;
}

.cart-drawer-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--stripe-border);
}

.cart-drawer-item > a {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cart-drawer-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.cart-remove-btn {
    background: none;
    border: none;
    color: var(--stripe-body);
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

.cart-remove-btn:hover {
    color: var(--stripe-heading);
}


/* --- Sidebar Filters --- */
.filter-section {
    margin-bottom: 32px;
}

.filter-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--stripe-heading);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.filter-list li {
    margin-bottom: 8px;
}

.filter-link {
    display: block;
    font-size: 15px;
    color: var(--stripe-body);
    text-decoration: none;
    transition: color 0.2s ease;
}

.filter-link:hover {
    color: var(--stripe-purple);
    text-decoration: none;
}

.filter-link.active {
    color: var(--stripe-heading);
    font-weight: 600;
}


/* Mega Menu */
.mega-menu-hover:hover .mega-menu {
    display: block;
    animation: fadeDown 0.2s ease forwards;
}

.mega-menu {
    display: none;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(0,0,0,0.05) !important;
    left: 0;
    right: 0;
    position: absolute;
    top: 100%;
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.mega-item {
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.mega-item:hover {
    background: #f5f5f7;
}

.mega-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

