/* Children's Toys E-commerce - Main Stylesheet */

:root {
    /* Premium Soft Palette matching provided design */
    --primary-color: #0ea5e9; /* Calm sky blue */
    --primary-hover: #0284c7;
    --secondary-color: #6366f1; /* Indigo accent */
    --secondary-hover: #4f46e5;
    --accent-color: #f6ddae; /* Warm cream accent */
    --accent-hover: #f1cf90;
    --gradient-start: #0ea5e9;
    --gradient-mid: #38bdf8;
    --gradient-end: #7c83d6;
    --gradient-extra: #9ea3e3;
    --dark-color: #1f2937;
    --dark-hover: #111827;
    --light-color: #f8fafc;
    --text-color: #1f2937;
    --text-light: #64748b;
    --border-color: #e5e7eb;
    --success-color: #22c55e;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #38bdf8;
    --font-primary: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Poppins', 'Inter', sans-serif;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px color-mix(in srgb, var(--primary-color) 35%, transparent), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px color-mix(in srgb, var(--primary-color) 25%, transparent), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color-dynamic, var(--text-color));
    line-height: 1.7;
    background-color: var(--background-color-dynamic, #f6f7f9);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: #fff;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.header-top {
    background: linear-gradient(135deg, var(--dark-color) 0%, #1A202C 100%);
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 2px solid var(--primary-color);
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.language-switcher a {
    color: #fff;
    text-decoration: none;
    margin: 0 5px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: var(--transition);
}

.language-switcher a:hover,
.language-switcher a.active {
    background: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.header-links a {
    color: #fff;
    text-decoration: none;
    margin-left: 15px;
    transition: var(--transition);
}

.header-links a:hover {
    color: var(--secondary-color);
}

.header-main {
    padding: 15px 0;
}

.header-main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo h1 {
    font-family: var(--font-heading);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--gradient-mid) 50%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 32px;
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo a {
    text-decoration: none;
}

.search-bar {
    flex: 1;
    max-width: 500px;
}

.search-bar form {
    display: flex;
    gap: 10px;
}

.search-bar input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 14px;
    transition: var(--transition);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-bar button {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--gradient-mid) 100%);
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.search-bar button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, var(--primary-hover) 0%, #FF8E53 100%);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-icon {
    position: relative;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 20px;
    background: var(--light-color);
    transition: var(--transition);
}

.cart-icon:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--gradient-mid) 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cart-count {
    background: var(--error-color);
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-right: 5px;
}

/* Navigation */
.main-nav {
    background: #fff;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    padding: 15px 0;
    margin: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 0;
    transition: var(--transition);
    display: block;
}

.nav-menu a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.has-dropdown .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: var(--shadow);
    list-style: none;
    min-width: 200px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li {
    padding: 0;
}

.dropdown a {
    padding: 10px 20px;
    display: block;
}

.dropdown a:hover {
    background: var(--light-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 30%, var(--gradient-end) 70%, var(--gradient-extra) 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0) translateX(0); }
    100% { transform: translateY(-100px) translateX(50px); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 56px;
    margin-bottom: 24px;
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

.hero-content p {
    font-size: 22px;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--gradient-mid) 100%);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-md);
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, var(--primary-hover) 0%, #FF8E53 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--gradient-extra) 100%);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-md);
    font-weight: 600;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, var(--secondary-hover) 0%, #6BC5D2 100%);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-small {
    padding: 6px 15px;
    font-size: 14px;
}

.btn-add-cart {
    width: 100%;
    margin-top: 0;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    margin: 30px 0;
    align-items: stretch;
}

/* Premium product card */
.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 6px 20px rgba(15, 23, 42, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    min-height: 0;
    border: 1px solid #e8ecf1;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    border-color: color-mix(in srgb, var(--primary-color) 35%, #e8ecf1);
}

.product-card__link {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    text-decoration: none;
    color: inherit;
}

.product-card a.product-card__link {
    text-decoration: none;
    color: inherit;
}

.product-image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: var(--light-color);
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--error-color) 0%, #E53E3E 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    z-index: 2;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.product-card__media {
    flex-shrink: 0;
}

.product-info {
    padding: 14px 16px 16px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    gap: 8px;
}

.product-card__meta {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 2px;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
    color: var(--text-color);
    word-break: break-word;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.product-card:hover .product-name {
    color: var(--primary-color);
}

.product-price {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 8px;
}

.product-card__actions {
    flex-shrink: 0;
    padding: 0 12px 12px;
}

.product-card__actions .btn-add-cart {
    width: 100%;
    margin: 0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
}

.current-price {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--gradient-mid) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.old-price {
    font-size: 14px;
    color: #94a3b8;
    text-decoration: line-through;
    margin-left: 0;
}

.product-stock {
    margin: 0;
    min-height: 1.25em;
    line-height: 1.3;
}

.in-stock {
    color: var(--success-color);
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.in-stock::before {
    content: '✓';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 16px;
    font-size: 10px;
}

.out-of-stock {
    color: var(--error-color);
    font-size: 14px;
    font-weight: 600;
}

/* Product Detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.product-images .main-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
    background: var(--light-color);
    margin-bottom: 15px;
}

.product-images .main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery {
    display: flex;
    gap: 10px;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.gallery-thumb:hover {
    border-color: var(--primary-color);
}

.product-info-detail h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.product-price-detail {
    margin-bottom: 20px;
}

.product-price-detail .current-price {
    font-size: 36px;
}

.product-stock-detail {
    margin-bottom: 20px;
    font-size: 16px;
}

.product-description-short {
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.8;
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    background: var(--light-color);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--border-color);
}

.quantity-selector input {
    width: 60px;
    padding: 10px;
    border: none;
    text-align: center;
    font-size: 16px;
}

.product-tabs {
    margin: 40px 0;
}

.tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
}

.tab-btn {
    padding: 15px 30px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.product-description-full {
    font-size: 16px;
    line-height: 1.8;
}

.specifications-table {
    width: 100%;
    border-collapse: collapse;
}

.specifications-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.specifications-table td:first-child {
    width: 200px;
    font-weight: 600;
}

/* Cart */
.cart-page {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin: 30px 0;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.cart-table thead {
    background: var(--light-color);
}

.cart-table th,
.cart-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-product {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cart-item-product img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.stock-warning {
    color: var(--warning-color);
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

.btn-remove {
    background: var(--error-color);
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-remove:hover {
    background: #C82333;
}

.cart-summary {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-row.total {
    border-bottom: none;
    border-top: 2px solid var(--border-color);
    margin-top: 10px;
    padding-top: 15px;
    font-size: 20px;
    font-weight: 700;
}

.free-shipping-info {
    margin-top: 15px;
    padding: 12px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #FFC700 100%);
    border-radius: var(--radius-sm);
    font-size: 14px;
    text-align: center;
    color: var(--dark-color);
    font-weight: 700;
    box-shadow: var(--shadow-md);
    border: 2px solid rgba(255, 217, 61, 0.5);
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #999;
}

/* Checkout */
.checkout-page {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    margin: 30px 0;
}

.checkout-section {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.checkout-section h2 {
    margin-bottom: 25px;
    color: var(--dark-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkout-gateway-alert {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-method {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    transition: var(--transition);
}

.payment-method input[type="radio"] {
    margin-right: 10px;
}

.payment-method label {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    margin: 0;
}

.payment-method label strong {
    margin-bottom: 5px;
}

.payment-method label span {
    font-size: 14px;
    color: #666;
}

.payment-method input[type="radio"]:checked + label,
.payment-method:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: var(--light-color);
}

.payment-form-section {
    margin-top: 20px;
    padding: 20px;
    background: var(--light-color);
    border-radius: 8px;
}

.order-summary {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.order-items {
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

/* Auth Pages */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 0;
}

.auth-form {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    width: 100%;
    max-width: 500px;
    border: 1px solid #e5e7eb;
}

.auth-form h1 {
    margin-bottom: 30px;
    text-align: center;
    color: var(--dark-color);
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: var(--text-color);
}

.auth-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.auth-link a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.auth-divider {
    margin: 18px 0;
    text-align: center;
    position: relative;
}

.auth-divider span {
    background: #fff;
    padding: 0 12px;
    color: var(--text-light);
    font-size: 13px;
    position: relative;
    z-index: 1;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid var(--border-color);
}

.btn-social {
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    gap: 8px;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.premium-social-grid .btn-social {
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
}

.social-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
}

.social-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.btn-google {
    background: #fff;
    border: 1px solid #d1d5db;
    color: #1f2937;
}

.btn-google:hover {
    background: #f8fafc;
}

.btn-facebook {
    background: linear-gradient(135deg, #1b74e4 0%, #0f5cc0 100%);
    color: #fff;
}

.btn-facebook:hover {
    background: linear-gradient(135deg, #165ec2 0%, #0f4e9f 100%);
}

.btn-apple {
    background: #111827;
    color: #fff;
}

.btn-apple:hover {
    background: #000;
}

.btn-github {
    background: #24292f;
    color: #fff;
}

.btn-github:hover {
    background: #1b1f24;
}

.btn-twitter {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
}

.btn-twitter:hover {
    background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
}

.btn-linkedin {
    background: linear-gradient(135deg, #0a66c2 0%, #004182 100%);
    color: #fff;
}

.btn-linkedin:hover {
    background: linear-gradient(135deg, #005bb5 0%, #003b75 100%);
}

@media (max-width: 480px) {
    .social-grid {
        grid-template-columns: 1fr;
    }
}

.form-group a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.form-group a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Account */
.account-page {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    margin: 30px 0;
}

.account-sidebar {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    height: fit-content;
}

.account-menu {
    list-style: none;
    margin-top: 20px;
}

.account-menu a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--text-color);
    border-radius: 8px;
    transition: var(--transition);
    margin-bottom: 5px;
}

.account-menu a:hover,
.account-menu a.active {
    background: var(--primary-color);
    color: #fff;
}

.account-section {
    display: none;
}

.account-section.active {
    display: block;
}

.account-menu-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    color: inherit;
}

.account-menu a:not(.active) .account-menu-badge {
    background: var(--primary-color);
    color: #fff;
}

.account-menu-logout {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.account-menu-logout a:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
}

.account-menu-logout a.active {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
}

.crypto-payment-page {
    margin: 30px 0 50px;
    max-width: 640px;
}

.crypto-payment-intro {
    color: #64748b;
    margin-bottom: 24px;
}

.crypto-pay-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: var(--shadow);
    margin-top: 20px;
}

.crypto-pay-qr {
    text-align: center;
    margin-bottom: 20px;
}

.crypto-pay-qr img {
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.crypto-pay-meta {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px 16px;
    margin: 0;
}

.crypto-pay-meta dt {
    font-weight: 600;
    color: #64748b;
    margin: 0;
}

.crypto-pay-meta dd {
    margin: 0;
}

.crypto-pay-address {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.crypto-pay-address code {
    word-break: break-all;
    font-size: 13px;
    background: rgba(15, 23, 42, 0.05);
    padding: 8px 10px;
    border-radius: 8px;
}

.wishlist-empty {
    color: #64748b;
    margin: 0 0 20px;
}

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.wishlist-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.wishlist-card__media img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.wishlist-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.wishlist-card__title {
    margin: 0;
    font-size: 1rem;
}

.wishlist-card__title a {
    color: var(--text-color);
    text-decoration: none;
}

.wishlist-card__variation {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
}

.wishlist-card__price {
    margin: 0;
    font-weight: 700;
    color: var(--primary-color);
}

.wishlist-card__note {
    margin: 0;
    font-size: 0.8125rem;
    color: #b45309;
}

.wishlist-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
}

.wishlist-remove-btn {
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #64748b;
}


.orders-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.orders-table thead {
    background: var(--light-color);
}

.orders-table th,
.orders-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.order-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: var(--warning-color);
    color: #000;
}

.status-processing {
    background: var(--secondary-color);
    color: #fff;
}

.status-shipped {
    background: #17A2B8;
    color: #fff;
}

.status-delivered {
    background: var(--success-color);
    color: #fff;
}

.status-cancelled {
    background: var(--error-color);
    color: #fff;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-error {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    color: #991B1B;
    border: 1px solid var(--error-color);
    border-left: 4px solid var(--error-color);
    box-shadow: var(--shadow);
}

.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.alert-success {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    color: #065F46;
    border: 1px solid var(--success-color);
    border-left: 4px solid var(--success-color);
    box-shadow: var(--shadow);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination-link {
    padding: 10px 15px;
    text-decoration: none;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    transition: var(--transition);
}

.pagination-link:hover,
.pagination-link.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--gradient-mid) 100%);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pagination-ellipsis {
    padding: 10px 5px;
}

/* Products Page */
.products-page {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    margin: 30px 0;
}

.products-sidebar {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    height: fit-content;
}

.category-list {
    list-style: none;
    margin-top: 15px;
}

.category-list a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--text-color);
    border-radius: 8px;
    transition: var(--transition);
    margin-bottom: 5px;
}

.category-list a:hover,
.category-list a.active {
    background: var(--primary-color);
    color: #fff;
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #0F172A 100%);
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 80px;
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--gradient-mid), var(--secondary-color), var(--gradient-extra));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--gradient-mid) 50%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
    transform: translateX(4px);
    display: inline-block;
    transition: var(--transition);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #999;
}

/* Order Success */
.order-success {
    text-align: center;
    padding: 40px 0;
}

.order-success h1 {
    background: linear-gradient(135deg, var(--success-color) 0%, #38A169 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    font-size: 42px;
    font-weight: 800;
}

.order-details {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin: 30px 0;
    text-align: left;
}

.order-items-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.order-items-table th,
.order-items-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.order-items-table thead {
    background: var(--light-color);
}

.order-items-table .order-variation,
.order-variation {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.bank-transfer-info {
    background: var(--light-color);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.order-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-main-content {
        flex-wrap: wrap;
    }
    
    .search-bar {
        order: 3;
        width: 100%;
        max-width: 100%;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .cart-page,
    .checkout-page {
        grid-template-columns: 1fr;
    }
    
    .products-page,
    .account-page {
        grid-template-columns: 1fr;
    }
    
    .products-sidebar,
    .account-sidebar {
        order: 2;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .hero-content h2 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.5s ease-out;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Legal Pages */
.legal-page {
    max-width: 900px;
    margin: 40px auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.legal-content {
    line-height: 1.8;
    margin-top: 30px;
}

.legal-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.legal-content h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.legal-content p {
    margin-bottom: 15px;
}

.legal-content ul,
.legal-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.legal-content li {
    margin-bottom: 8px;
}

/* Privacy Policy Modern */
.privacy-modern {
    padding: 28px 0 70px;
}

.privacy-hero {
    max-width: 900px;
    margin: 0 auto 30px;
    text-align: center;
}

.privacy-hero span {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-hover);
    margin-bottom: 8px;
    font-weight: 700;
}

.privacy-hero h1 {
    font-size: 42px;
    margin-bottom: 10px;
    line-height: 1.2;
}

.privacy-hero p {
    color: #64748b;
    max-width: 760px;
    margin: 0 auto;
}

.privacy-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}

.privacy-toc {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
    position: sticky;
    top: 104px;
}

.privacy-toc h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.privacy-toc nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.privacy-toc a {
    text-decoration: none;
    color: #475569;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 14px;
}

.privacy-toc a:hover {
    color: var(--primary-hover);
    background: color-mix(in srgb, var(--primary-color) 12%, white);
}

.privacy-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.privacy-block {
    background: #fbfbfc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 20px;
}

.privacy-block h2 {
    margin-bottom: 10px;
    font-size: 24px;
}

.privacy-block p {
    color: #475569;
}

.privacy-image-banner {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #dbe3ea;
}

.privacy-image-banner img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.privacy-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.privacy-two-col > div {
    background: #f1f5f9;
    border: 1px solid #dbe3ea;
    border-radius: 10px;
    padding: 12px;
}

.privacy-two-col h4 {
    margin-bottom: 6px;
}

.privacy-rights-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.privacy-boxed {
    background: #f8fafc;
}

.privacy-link-btn {
    margin-top: 8px;
    display: inline-block;
    text-decoration: none;
    color: var(--primary-hover);
    font-weight: 700;
}

.privacy-contact-banner {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
    color: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.privacy-contact-banner h3 {
    font-size: 22px;
    margin-bottom: 4px;
}

.privacy-contact-banner p {
    opacity: 0.9;
}

.privacy-contact-banner a {
    background: #fff;
    color: var(--primary-hover);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .privacy-shell {
        grid-template-columns: 1fr;
    }

    .privacy-toc {
        position: static;
    }

    .privacy-two-col {
        grid-template-columns: 1fr;
    }

    .privacy-contact-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Order Details */
.order-info-section,
.order-items-section,
.shipping-info-section,
.payment-info-section {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

.order-info-section h2,
.order-items-section h2,
.shipping-info-section h2,
.payment-info-section h2 {
    margin-bottom: 20px;
    color: var(--dark-color);
    font-size: 20px;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.section-title {
    font-size: 36px;
    margin: 50px 0 40px;
    color: var(--dark-color);
    text-align: center;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--gradient-mid), var(--secondary-color));
    border-radius: 2px;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 18px;
}

/* Homepage Premium Look */
.premium-hero {
    position: relative;
    min-height: 560px;
    margin-bottom: 70px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-block: 80px;
}

.premium-hero-bg {
    position: absolute;
    inset: 0;
}

.premium-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.35) 45%, rgba(255, 255, 255, 0.1) 100%);
}

.premium-hero.hero-align-center .premium-hero-bg::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.78) 100%);
}

.premium-hero.hero-align-right .premium-hero-bg::after {
    background: linear-gradient(270deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.35) 45%, rgba(255, 255, 255, 0.1) 100%);
}

.premium-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.premium-hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
}

.premium-hero-content {
    max-width: 580px;
    width: 100%;
}

.premium-hero.hero-align-left .container {
    justify-content: flex-start;
}

.premium-hero.hero-align-left .premium-hero-content {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
}

.premium-hero.hero-align-center .container {
    justify-content: center;
}

.premium-hero.hero-align-center .premium-hero-content {
    text-align: center;
    margin: 0 auto;
}

.premium-hero.hero-align-center .premium-hero-content p {
    margin-left: auto;
    margin-right: auto;
}

.premium-hero.hero-align-center .premium-hero-actions {
    justify-content: center;
}

.premium-hero.hero-align-right .container {
    justify-content: flex-end;
}

.premium-hero.hero-align-right .premium-hero-content {
    text-align: right;
    margin-left: auto;
    margin-right: 0;
}

.premium-hero.hero-align-right .premium-hero-content p {
    margin-left: auto;
}

.premium-hero.hero-align-right .premium-hero-actions {
    justify-content: flex-end;
}

.premium-chip {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    background: rgba(246, 221, 174, 0.65);
    color: #694d1a;
}

.premium-hero-content h2 {
    font-family: var(--font-heading);
    font-size: 54px;
    line-height: 1.12;
    margin-bottom: 20px;
    color: #191c1d;
    letter-spacing: -1px;
}

.premium-hero-content p {
    max-width: 520px;
    font-size: 18px;
    color: #3d484f;
    margin-bottom: 34px;
}

.premium-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.premium-outline-btn {
    background: #fff;
    color: var(--primary-hover);
    border: 2px solid var(--primary-hover);
}

.premium-outline-btn:hover {
    background: #f3f4f5;
    transform: translateY(-3px);
}

.premium-categories {
    margin-bottom: 70px;
}

.premium-section-head {
    text-align: center;
    margin-bottom: 34px;
}

.premium-section-head h2,
.premium-arrivals h2,
.premium-newsletter h2 {
    font-size: 34px;
    font-family: var(--font-heading);
    color: #191c1d;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.premium-section-head p,
.premium-arrivals p,
.premium-newsletter p {
    color: #5b6670;
}

.premium-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 240px;
    gap: 20px;
}

.premium-bento-item {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    box-shadow: var(--shadow-md);
}

.premium-bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.premium-bento-item:hover img {
    transform: scale(1.06);
}

.premium-bento-tall {
    grid-row: span 2;
}

.premium-bento-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    padding: 24px;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.05) 25%, rgba(20, 20, 20, 0.72) 100%);
}

.premium-bento-overlay h3 {
    margin-bottom: 4px;
    font-size: 24px;
}

.premium-bento-overlay p {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.premium-bento-overlay span {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.premium-arrivals {
    margin-bottom: 60px;
}

.premium-section-row {
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
}

.premium-section-row a {
    text-decoration: none;
    color: var(--primary-hover);
    font-weight: 700;
}

.premium-arrivals .products-grid {
    gap: 24px;
    align-items: stretch;
}

.premium-arrivals .product-info {
    padding: 18px;
}

.premium-newsletter {
    margin: 30px 0 40px;
}

.premium-newsletter-inner {
    border-radius: 28px;
    background: linear-gradient(135deg, #6268a8 0%, #767dc0 100%);
    padding: 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    align-items: center;
    color: #fff;
    box-sizing: border-box;
}

.premium-newsletter h2,
.premium-newsletter p {
    color: #fff;
}

.premium-newsletter-content {
    max-width: 560px;
    flex: 1 1 240px;
    min-width: 0;
}

.premium-newsletter-form {
    flex: 1 1 220px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
    box-sizing: border-box;
}

.premium-newsletter-form .newsletter-form-message {
    flex: 1 1 100%;
    margin: 4px 0 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.premium-newsletter-form .newsletter-form-message.is-success {
    color: #ecfdf5;
}

.premium-newsletter-form .newsletter-form-message.is-error {
    color: #fecaca;
}

.premium-newsletter-form input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 14px 16px;
    box-sizing: border-box;
}

.premium-newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.premium-newsletter-form button {
    flex: 0 0 auto;
    border: 0;
    border-radius: 12px;
    padding: 14px 18px;
    background: var(--accent-color);
    color: #3d2f12;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .premium-hero {
        min-height: 460px;
        margin-bottom: 45px;
    }

    .premium-hero-content h2 {
        font-size: 36px;
    }

    .premium-hero-content p {
        font-size: 16px;
    }

    .premium-bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }

    .premium-bento-tall {
        grid-row: span 1;
    }

    .premium-section-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .premium-newsletter-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 28px 20px;
        border-radius: 20px;
    }

    .premium-newsletter-content {
        max-width: none;
    }

    .premium-newsletter-form {
        flex: none;
        flex-direction: column;
        width: 100%;
        min-width: 0;
    }

    .premium-newsletter-form input,
    .premium-newsletter-form button {
        width: 100%;
    }

    .premium-newsletter-form button {
        white-space: normal;
    }
}

/* Premium Header/Footer Override */
.main-header {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid #eceff3;
    box-shadow: 0 4px 20px rgba(20, 33, 61, 0.05);
}

.header-top {
    display: none;
}

.header-main {
    padding: 14px 0;
}

.premium-nav-layout {
    gap: 24px;
    display: grid;
    grid-template-columns: minmax(140px, 1fr) auto minmax(140px, 1fr);
    align-items: center;
}

.premium-nav-layout .logo {
    justify-self: start;
}

.premium-nav-layout .premium-header-actions {
    justify-self: end;
}

.logo .logo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo .logo-icon {
    height: 36px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
}

.logo.logo-mode-icon .logo-icon {
    height: 40px;
}

.logo h1 {
    background: none;
    -webkit-text-fill-color: initial;
    color: #111827;
    font-size: 28px;
    font-weight: 800;
    margin: 0;
}

.premium-main-nav {
    background: transparent;
    border: 0;
    box-shadow: none;
    justify-self: center;
}

.premium-main-nav .nav-menu {
    padding: 0;
    gap: 20px;
}

.premium-main-nav .nav-menu a {
    font-size: 14px;
    color: #4b5563;
    font-weight: 600;
}

.premium-main-nav .nav-menu a:hover,
.premium-main-nav .nav-menu a.active {
    color: var(--primary-color);
}

.premium-header-actions {
    gap: 8px;
}

.header-icon-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    text-decoration: none;
    color: #4b5563;
    position: relative;
    transition: var(--transition);
}

.header-icon-btn:hover {
    background: #f3f4f6;
    color: var(--primary-color);
}

.header-icon-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.header-icon-btn.cart-icon {
    background: transparent;
    padding: 0;
}

.header-icon-btn.cart-icon .cart-count {
    position: absolute;
    right: -4px;
    top: -3px;
    margin: 0;
    width: 18px;
    height: 18px;
    font-size: 11px;
    background: #ef4444;
}

.header-actions .language-switcher {
    margin-left: 8px;
    display: inline-flex;
    gap: 2px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 2px;
}

.header-actions .language-switcher a {
    color: #6b7280;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 5px 8px;
    border-radius: 999px;
}

.header-actions .language-switcher a.active {
    color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 12%, white);
}

.main-footer {
    background: #f3f4f6;
    border-top: 1px solid #e5e7eb;
    color: #4b5563;
    margin-top: 40px;
    padding: 46px 0 20px;
}

.main-footer::before {
    display: none;
}

.premium-footer-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 0.8fr;
    gap: 28px;
    margin-bottom: 28px;
}

.main-footer h3,
.main-footer h4 {
    background: none;
    -webkit-text-fill-color: initial;
    color: #111827;
    margin-bottom: 12px;
}

.main-footer p,
.main-footer a {
    color: #6b7280;
}

.premium-inline-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.premium-inline-links li {
    margin-bottom: 8px;
}

.main-footer a:hover {
    color: var(--primary-color);
    transform: none;
}

.footer-logo {
    margin-bottom: 14px;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.footer-logo-icon {
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.footer-logo-text {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
}

.footer-logo.logo-mode-icon .footer-logo-icon {
    height: 44px;
}

.footer-tagline {
    margin: 0;
    line-height: 1.65;
    color: #6b7280;
    max-width: 320px;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.footer-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    border: 1px solid #e2e8f0;
}

.footer-social__link:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-social__svg {
    display: block;
    width: 20px;
    height: 20px;
}

.footer-store-address {
    line-height: 1.65;
    color: #6b7280;
}

.footer-store-address strong {
    display: block;
    color: #111827;
    font-weight: 700;
    margin-bottom: 4px;
}

.footer-bottom {
    border-top: 1px solid #e5e7eb;
    color: #94a3b8;
}

@media (max-width: 900px) {
    /* Single-row mobile header: [hamburger]  [logo]  [actions] */
    .premium-nav-layout {
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 10px;
    }
    .premium-nav-layout .premium-main-nav {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        background: transparent;
        border: 0;
        box-shadow: none;
        padding: 0;
        min-width: 40px;
    }
    .premium-nav-layout .logo {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        text-align: center;
        min-width: 0;
    }
    .premium-nav-layout .logo .logo-link {
        justify-content: center;
    }
    .premium-nav-layout .premium-header-actions {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
    }

    .premium-main-nav .nav-menu { display: none; }
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 8px;
        background: transparent;
        border: 0;
        border-radius: 10px;
        cursor: pointer;
        transition: background-color .15s ease;
    }
    .mobile-menu-toggle:hover,
    .mobile-menu-toggle:active { background: rgba(15, 23, 42, 0.06); }
    .mobile-menu-toggle span { width: 22px; height: 2.5px; border-radius: 2px; }

    .premium-footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .premium-nav-layout {
        gap: 12px;
    }

    .logo h1 {
        font-size: 22px;
    }

    .logo .logo-icon {
        height: 30px;
    }

    .premium-footer-content {
        grid-template-columns: 1fr;
    }
}

/* Contact Page */
.contact-page {
    padding: 48px 0 70px;
}

.contact-hero {
    max-width: 760px;
    margin-bottom: 36px;
}

.contact-hero span {
    display: block;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--primary-hover);
    margin-bottom: 10px;
}

.contact-hero h1 {
    font-family: var(--font-heading);
    font-size: 44px;
    line-height: 1.2;
    letter-spacing: -0.7px;
    margin-bottom: 16px;
    color: var(--text-color-dynamic, var(--text-color));
}

.contact-hero p {
    color: #475569;
    max-width: 680px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 28px;
}

.contact-form-card {
    background: #fbfbfc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 34px 38px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.contact-form-card h2 {
    margin-bottom: 24px;
    font-size: 30px;
    color: var(--text-color-dynamic, var(--text-color));
}

.contact-form .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form .form-group {
    margin-bottom: 18px;
}

.contact-form label {
    color: #4b5563;
    font-size: 14px;
    font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    margin-top: 8px;
    border: 1px solid #e5e7eb;
    background: #f4f5f8;
    border-radius: 10px;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #7dd3fc;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.contact-submit {
    margin-top: 8px;
    border-radius: 999px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
}

.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-support-card {
    background: #dcecf5;
    border: 1px solid #c7e0ec;
    border-radius: 14px;
    padding: 26px;
}

.contact-support-card h3 {
    margin-bottom: 18px;
    color: var(--text-color-dynamic, var(--text-color));
}

.support-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.support-row:last-child {
    margin-bottom: 0;
}

.support-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--primary-color) 12%, white);
    color: var(--primary-hover);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex: 0 0 auto;
}

.support-row p {
    color: #64748b;
    margin-bottom: 2px;
    font-size: 13px;
}

.support-row strong {
    color: var(--text-color-dynamic, var(--text-color));
    font-size: 16px;
}

.contact-map-card {
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    border: 1px solid #d9dce3;
    min-height: 260px;
}

.contact-map-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-map-overlay {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    background: rgba(255, 255, 255, 0.94);
    padding: 14px;
    border-radius: 10px;
}

.contact-map-overlay p {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--primary-hover);
    margin-bottom: 6px;
}

.contact-map-overlay strong {
    color: var(--text-color-dynamic, var(--text-color));
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-hero h1 {
        font-size: 34px;
    }
}

@media (max-width: 768px) {
    .contact-page {
        padding-top: 28px;
    }

    .contact-form-card {
        padding: 24px 20px;
    }

    .contact-form .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-card h2 {
        font-size: 24px;
    }
}

/* Checkout Modern */
.checkout-header .logo h1 {
    font-size: 38px;
}

.checkout-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.checkout-security {
    color: var(--primary-hover);
    font-size: 14px;
    font-weight: 600;
}

/* Guest checkout (slim sign-in) */
.checkout-guest-wrap {
    padding-top: 32px;
    padding-bottom: 56px;
}

.checkout-guest {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: start;
}

.checkout-guest-title {
    font-size: 32px;
    line-height: 1.1;
    margin: 0 0 18px;
    letter-spacing: -0.5px;
}

.order-summary-guest {
    background: #fbfbfd;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 22px;
}

.order-summary-guest h3 {
    margin: 0 0 16px;
    font-size: 18px;
}

.order-summary-guest .order-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.order-summary-guest .order-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    color: #1f2937;
}

.order-summary-guest .order-item small {
    display: block;
    color: #64748b;
    margin-top: 2px;
}

.order-summary-guest .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: #475569;
    border-top: 1px solid #eef0f3;
}

.order-summary-guest .summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    border-top: 2px solid #e5e7eb;
    padding-top: 14px;
    margin-top: 6px;
}

.checkout-trust {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.08);
    color: #047857;
}

.checkout-trust strong {
    display: block;
    font-size: 14px;
}

.checkout-trust span {
    display: block;
    font-size: 12px;
    color: #065f46;
    opacity: 0.85;
    margin-top: 2px;
}

.checkout-guest-auth .auth-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.06);
}

.checkout-guest-auth .auth-card h2 {
    margin: 0 0 6px;
    font-size: 22px;
}

.checkout-guest-auth .auth-card-sub {
    color: #64748b;
    font-size: 14px;
    margin: 0 0 18px;
}

.checkout-guest-auth .checkout-login-form .form-group {
    margin-bottom: 14px;
}

.checkout-guest-auth .checkout-login-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.checkout-guest-auth .checkout-login-form input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: #fff;
    font-size: 15px;
}

.checkout-guest-auth .checkout-login-form input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.checkout-guest-auth .btn-block {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border-radius: 10px;
}

.auth-card-foot {
    text-align: center;
    margin: 18px 0 0;
    color: #64748b;
    font-size: 14px;
}

.auth-card-foot a {
    color: var(--primary-color, #4338ca);
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 860px) {
    .checkout-guest {
        grid-template-columns: 1fr;
    }
    .checkout-guest-auth .auth-card {
        padding: 22px;
    }
}

.checkout-modern {
    padding-top: 26px;
}

.checkout-modern .checkout-page {
    grid-template-columns: 1.4fr 0.9fr;
    gap: 30px;
}

.checkout-stepper {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.checkout-stepper .step {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-stepper .step span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.checkout-stepper .step p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    font-weight: 600;
}

.checkout-stepper .step.active span {
    background: var(--primary-hover);
    color: #fff;
}

.checkout-stepper .step.active p {
    color: var(--primary-hover);
}

.checkout-stepper .step-line {
    flex: 1;
    height: 1px;
    background: #dbe3ea;
    margin: 0 14px;
}

.checkout-modern .checkout-section {
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    background: #fbfbfc;
}

.checkout-modern .checkout-section h2 {
    font-size: 24px;
    margin-bottom: 22px;
}

.checkout-modern .form-group input,
.checkout-modern .form-group textarea,
.checkout-modern .form-group select {
    background: #f2f4f7;
    border: 1px solid transparent;
    border-radius: 10px;
}

.checkout-modern .form-group input:focus,
.checkout-modern .form-group textarea:focus,
.checkout-modern .form-group select:focus {
    border-color: #7dd3fc;
    background: #fff;
}

.checkout-location-row {
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
}

.shipping-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shipping-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #dbe3ea;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
}

.shipping-option.active {
    border-color: var(--primary-hover);
    background: color-mix(in srgb, var(--primary-color) 8%, white);
}

.shipping-option strong {
    display: block;
    font-size: 16px;
}

.shipping-option span {
    font-size: 13px;
    color: #64748b;
}

.shipping-option em {
    font-style: normal;
    font-weight: 700;
}

.shipping-option input {
    position: absolute;
    opacity: 0;
}

.checkout-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 6px 0 10px;
}

.checkout-back {
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
}

.checkout-actions .btn {
    border-radius: 999px;
    padding: 12px 30px;
}

.checkout-modern .order-summary {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f8fafc;
}

.checkout-modern .order-item {
    align-items: flex-start;
}

.checkout-modern .order-item strong {
    display: block;
    font-size: 15px;
    line-height: 1.35;
}

.checkout-modern .order-item small {
    color: #64748b;
}

.checkout-badges {
    border-top: 1px solid #dbe3ea;
    margin-top: 18px;
    padding-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.checkout-badges span {
    text-align: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    font-weight: 700;
}

@media (max-width: 900px) {
    .checkout-modern .checkout-page {
        grid-template-columns: 1fr;
    }

    .checkout-location-row {
        grid-template-columns: 1fr;
    }
}

/* Premium checkout — uses admin theme CSS variables from header :root */
.checkout-premium-wrap {
    background: linear-gradient(
        180deg,
        var(--background-color-dynamic, #f6f7f9) 0%,
        color-mix(in srgb, var(--surface-color-dynamic, #f8fafc) 88%, var(--primary-color) 12%) 100%
    );
    color: var(--text-color-dynamic, var(--text-color));
    min-height: calc(100vh - 120px);
    padding: 28px 0 64px;
    margin: 0 calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
}

.checkout-premium-wrap .container {
    max-width: 1120px;
}

.checkout-premium-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 24px;
    color: var(--text-color-dynamic, var(--text-color));
    font-family: var(--font-heading);
}

.checkout-premium-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 28px;
    align-items: start;
}

.checkout-summary-card {
    background: var(--surface-color-dynamic, #fff);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
}

.checkout-summary-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 16px;
}

.checkout-summary-item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.checkout-summary-thumb {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--light-color);
    border: 1px solid var(--border-color);
}

.checkout-summary-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-summary-item-body strong {
    display: block;
    font-size: 15px;
    color: var(--text-color-dynamic, var(--text-color));
    line-height: 1.3;
}

.checkout-summary-item-body span {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

.checkout-summary-item-price {
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
    font-size: 14px;
}

.checkout-summary-rows {
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    color: var(--text-light);
    font-size: 14px;
}

.checkout-summary-total {
    margin-top: 6px;
    padding-top: 12px;
    border-top: 2px solid var(--border-color);
    font-size: 18px;
    font-weight: 800;
    color: var(--text-color-dynamic, var(--text-color));
}

.checkout-shipping-note {
    margin: 4px 0 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

.checkout-shipping-note--success {
    color: #15803d;
    font-weight: 600;
}

.checkout-summary-total span:last-child {
    color: var(--primary-color);
    font-size: 22px;
}

.checkout-trust-premium {
    margin-top: 16px;
    background: color-mix(in srgb, var(--success-color) 10%, var(--surface-color-dynamic, #fff));
    border: 1px solid color-mix(in srgb, var(--success-color) 35%, var(--border-color));
    border-radius: var(--radius);
    color: var(--success-color);
}

.checkout-trust-premium strong {
    color: color-mix(in srgb, var(--success-color) 80%, var(--dark-color));
}

.checkout-trust-premium span {
    color: var(--text-light);
}

.checkout-premium-main {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.checkout-account-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--primary-color) 12%, var(--surface-color-dynamic, #fff));
    border: 1px solid color-mix(in srgb, var(--primary-color) 35%, var(--border-color));
    color: var(--text-color-dynamic, var(--text-color));
    font-size: 14px;
}

.checkout-account-badge strong {
    color: var(--primary-color);
}

.checkout-premium-block {
    background: var(--surface-color-dynamic, #fff);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px 18px 16px;
    box-shadow: var(--shadow);
}

.checkout-premium-heading {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color-dynamic, var(--text-color));
    font-family: var(--font-heading);
}

.checkout-premium-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color-dynamic, var(--text-color));
    margin-bottom: 8px;
}

.checkout-premium-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-color-dynamic, var(--text-color));
    font-size: 15px;
    transition: var(--transition);
}

.checkout-premium-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 22%, transparent);
}

.checkout-premium-input[readonly] {
    background: var(--light-color);
    opacity: 0.9;
    cursor: not-allowed;
}

.checkout-premium-hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.45;
}

.checkout-premium-hint a {
    color: var(--secondary-color);
    font-weight: 600;
}

.checkout-account-panel {
    padding: 14px 16px;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--secondary-color) 6%, var(--surface-color-dynamic, #fff));
    border: 1px dashed color-mix(in srgb, var(--secondary-color) 40%, var(--border-color));
}

.checkout-account-msg {
    margin: 0 0 10px;
    color: var(--text-color-dynamic, var(--text-color));
    font-size: 14px;
    line-height: 1.45;
}

.checkout-auth-section .checkout-social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.checkout-social-btn {
    flex: 1 1 120px;
    justify-content: center;
}

.checkout-premium-wrap .auth-divider span {
    background: var(--surface-color-dynamic, #fff);
    color: var(--text-light);
}

.checkout-premium-wrap .auth-divider::before {
    background: var(--border-color);
}

.checkout-inline-login {
    margin-top: 12px;
}

.checkout-inline-login summary {
    cursor: pointer;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

.checkout-inline-login summary:hover {
    color: var(--primary-hover);
}

.checkout-inline-login-form {
    margin-top: 12px;
}

.checkout-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.checkout-form-row-3 {
    grid-template-columns: 1.2fr 0.8fr 0.9fr;
}

.checkout-premium-block .form-group {
    margin-bottom: 12px;
}

.checkout-premium-block .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color-dynamic, var(--text-color));
    margin-bottom: 6px;
}

.checkout-terms-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkout-terms-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: var(--text-color-dynamic, var(--text-color));
    line-height: 1.45;
    cursor: pointer;
}

.checkout-terms-item input {
    margin-top: 3px;
    accent-color: var(--primary-color);
}

.checkout-terms-item a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
}

.checkout-terms-item a:hover {
    color: var(--primary-hover);
}

.checkout-pay-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkout-pay-option {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background: #fff;
    cursor: pointer;
    transition: var(--transition);
}

.checkout-pay-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkout-pay-option.is-selected {
    border-color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 8%, #fff);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary-color) 40%, transparent);
}

.checkout-pay-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--primary-color) 10%, var(--light-color));
    color: var(--primary-color);
}

.checkout-pay-copy strong {
    display: block;
    color: var(--text-color-dynamic, var(--text-color));
    font-size: 15px;
}

.checkout-pay-copy small {
    display: block;
    margin-top: 2px;
    color: var(--text-light);
    font-size: 12px;
}

.checkout-stripe-panel {
    margin-top: 14px;
    padding: 14px;
    border-radius: var(--radius);
    background: var(--light-color);
    border: 1px solid var(--border-color);
}

.checkout-stripe-errors {
    color: var(--error-color);
    font-size: 13px;
    margin-top: 8px;
    min-height: 1.2em;
}

.checkout-premium-wrap .alert-error {
    background: color-mix(in srgb, var(--error-color) 10%, #fff);
    border: 1px solid color-mix(in srgb, var(--error-color) 35%, var(--border-color));
    color: color-mix(in srgb, var(--error-color) 85%, var(--dark-color));
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 12px;
}

.btn-checkout-complete {
    width: 100%;
    margin-top: 4px;
    padding: 16px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(
        90deg,
        var(--primary-color) 0%,
        var(--secondary-color) 55%,
        var(--accent-color) 100%
    );
    box-shadow: var(--shadow-hover);
    transition: var(--transition);
}

.btn-checkout-complete:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.btn-checkout-complete:disabled {
    opacity: 0.65;
    cursor: wait;
}

.checkout-back-link {
    display: inline-block;
    margin-top: 10px;
    text-align: center;
    width: 100%;
    color: var(--text-light);
    font-size: 14px;
    text-decoration: none;
}

.checkout-back-link:hover {
    color: var(--primary-color);
}

@media (max-width: 900px) {
    .checkout-premium-grid {
        grid-template-columns: 1fr;
    }

    .checkout-form-row,
    .checkout-form-row-3 {
        grid-template-columns: 1fr;
    }
}

/* Products Premium Category Layout */
.products-hero {
    background: #f0f3f6;
    padding: 34px 0 42px;
}

.shop-all-hero {
    padding: 22px 0 20px;
}

.products-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 18px;
}

.products-breadcrumb a {
    color: #64748b;
    text-decoration: none;
}

.products-breadcrumb strong {
    color: var(--primary-hover);
}

.products-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 26px;
    align-items: center;
}

.products-hero h1 {
    font-size: 42px;
    margin-bottom: 12px;
    line-height: 1.2;
    color: var(--text-color-dynamic, var(--text-color));
}

.products-hero p {
    color: #475569;
    max-width: 640px;
}

.products-hero-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.1);
}

.products-modern {
    padding: 28px 20px 50px;
}

.products-modern .products-page {
    align-items: flex-start;
}

.products-filter-panel {
    background: transparent;
    border: 0;
    border-radius: 12px;
    padding: 0;
}

.products-filter-panel h3 {
    margin-bottom: 12px;
}

.dummy-filters {
    border-top: 1px solid #e5e7eb;
    margin-top: 16px;
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dummy-filters h4 {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #475569;
    margin-top: 8px;
}

.dummy-filters label {
    color: #475569;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-range-note {
    font-size: 13px;
    color: #64748b;
}

.clear-filter-btn {
    margin-top: 10px;
    text-decoration: none;
    border: 0;
    border-radius: 10px;
    text-align: center;
    padding: 11px 12px;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
}

.products-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    gap: 14px;
}

.products-topbar p {
    color: #64748b;
    font-size: 14px;
}

.products-topbar strong {
    color: var(--text-color-dynamic, var(--text-color));
}

.products-sort-label {
    font-size: 14px;
    color: #475569;
}

.products-premium-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.products-premium-grid .product-image {
    padding-top: 100%;
}

.products-premium-grid .current-price {
    font-size: 18px;
}

.shop-all-hidden-hero-image {
    display: none;
}

.products-consult-cta {
    padding: 20px 0 70px;
}

.products-consult-inner {
    background: #dff0f8;
    border: 1px solid #cfe4ee;
    border-radius: 18px;
    padding: 28px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px;
    align-items: center;
}

.products-consult-inner h2 {
    margin-bottom: 10px;
    font-size: 28px;
    color: var(--text-color-dynamic, var(--text-color));
}

.products-consult-inner p {
    color: #475569;
}

.products-consult-buttons {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.products-consult-image img {
    width: 100%;
    border-radius: 14px;
    max-height: 280px;
    object-fit: cover;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
}

@media (max-width: 900px) {
    .products-hero-grid,
    .products-consult-inner {
        grid-template-columns: 1fr;
    }

    .products-filter-panel {
        position: static;
    }

    .products-topbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Product Detail Modern */
.product-modern {
    padding-top: 26px;
}

.product-breadcrumb {
    margin-bottom: 16px;
}

.product-modern-grid {
    grid-template-columns: 1.25fr 1fr;
    gap: 28px;
    align-items: start;
}

.product-modern .main-image {
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
}

.product-gallery-modern {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.gallery-thumb {
    width: 100%;
    height: 100px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    object-fit: cover;
}

.gallery-thumb.active {
    border: 2px solid var(--primary-hover);
}

/* Amazon-style product gallery */
.pdp-gallery-wrap {
    width: 100%;
}

.pdp-gallery {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.pdp-gallery-thumbs-col {
    flex-shrink: 0;
}

.pdp-gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 72px;
    max-height: min(520px, 70vh);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.pdp-gallery-thumbs::-webkit-scrollbar {
    width: 4px;
}

.pdp-gallery-thumbs::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.pdp-gallery-thumb {
    position: relative;
    width: 68px;
    height: 68px;
    padding: 0;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pdp-gallery-thumb:hover {
    border-color: #94a3b8;
}

.pdp-gallery-thumb.is-active {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px #2563eb;
}

.pdp-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #fff;
}

.pdp-gallery-thumb.is-video .pdp-thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    pointer-events: none;
}

.pdp-thumb-video-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -18px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #475569;
    text-align: center;
    pointer-events: none;
}

.pdp-gallery-thumb.is-video {
    margin-bottom: 20px;
}

.pdp-gallery-more .pdp-more-badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.pdp-gallery-stage {
    flex: 1;
    min-width: 0;
    position: relative;
}

.pdp-gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-height: min(560px, 75vh);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pdp-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.pdp-video-frame {
    position: absolute;
    inset: 0;
    background: #000;
}

.pdp-video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.pdp-share-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    transition: background 0.15s ease, color 0.15s ease;
}

.pdp-share-btn:hover {
    background: #f8fafc;
    color: var(--primary-hover, #2563eb);
}

.product-modern .pdp-gallery-wrap .main-image {
    display: none;
}

.product-info-modern {
    background: #fbfbfc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.product-tag {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    background: var(--accent-color);
    color: #694d1a;
    margin-bottom: 12px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #f59e0b;
}

.product-rating small {
    color: #64748b;
}

.product-info-modern .product-description-short {
    margin: 14px 0 18px;
    color: #475569;
}

.product-variation-modern .variation-group {
    margin-bottom: 12px;
}

.product-variation-modern label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
}

.product-variation-modern select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #f8fafc;
}

.product-wishlist-btn {
    width: 100%;
    margin-top: 12px;
    padding: 12px 28px;
    border-radius: 25px;
    border: 2px solid var(--primary-color);
    background: #fff;
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(15, 23, 42, 0.08));
    transition: var(--transition);
}

.product-wishlist-btn__icon {
    flex-shrink: 0;
}

.product-wishlist-btn:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--gradient-mid) 100%);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.product-wishlist-btn.is-in-wishlist {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--gradient-mid) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.product-wishlist-btn.is-in-wishlist .product-wishlist-btn__icon {
    fill: currentColor;
}

.product-wishlist-btn--compact {
    width: auto;
    margin-top: 0;
    flex: 0 0 auto;
    padding: 10px 14px;
}

.product-wishlist-btn--compact .product-wishlist-btn__label {
    display: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.product-tabs-modern {
    margin-top: 34px;
}

.product-tabs-modern .tabs {
    gap: 26px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.product-tabs-modern .tab-btn {
    white-space: nowrap;
}

/* Variation pills & swatches */
.variation-group {
    margin-bottom: 18px;
}

.variation-group > label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #475569;
    margin-bottom: 8px;
}

.variation-pills,
.variation-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.variation-pill {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111827;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.variation-pill:hover {
    border-color: #6366f1;
    color: #4338ca;
}

.variation-pill.active {
    background: #111827;
    color: #fff;
    border-color: #111827;
    box-shadow: 0 4px 16px rgba(17, 24, 39, 0.15);
}

.variation-swatch {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.variation-swatch:hover {
    transform: scale(1.06);
    border-color: #6366f1;
}

.variation-swatch.active {
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.15);
}

.variation-swatch .swatch-label {
    position: absolute;
    inset: 0;
    display: none;
}

/* Star ratings */
.rating-stars {
    display: inline-flex;
    gap: 2px;
    font-size: 16px;
    line-height: 1;
}

.rating-stars .star-filled {
    color: #f59e0b;
}

.rating-stars .star-empty {
    color: #d1d5db;
}

/* Reviews */
.reviews-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    padding: 16px 18px;
    background: #f9fafb;
    border-radius: 12px;
}

.reviews-summary-score {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviews-summary-score .big-rating {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.review-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 18px;
    background: #fff;
}

.review-item header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 6px;
    color: #475569;
    font-size: 14px;
}

.review-item h4 {
    margin: 4px 0 6px;
    font-size: 16px;
}

.review-item p {
    color: #374151;
    line-height: 1.55;
    margin: 0;
}

.no-reviews {
    color: #64748b;
    font-style: italic;
}

.write-review-title {
    margin: 18px 0 12px;
    font-size: 20px;
}

.review-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.review-form .form-group {
    margin-bottom: 14px;
}

.review-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.review-form input,
.review-form select,
.review-form textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
}

.review-form textarea {
    resize: vertical;
}

@media (max-width: 600px) {
    .review-form .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .product-modern-grid {
        grid-template-columns: 1fr;
    }

    .gallery-thumb {
        height: 80px;
    }

    .pdp-gallery {
        flex-direction: column-reverse;
    }

    .pdp-gallery-thumbs-col {
        width: 100%;
    }

    .pdp-gallery-thumbs {
        flex-direction: row;
        width: 100%;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 4px;
        gap: 8px;
    }

    .pdp-gallery-thumb {
        width: 64px;
        height: 64px;
        flex-shrink: 0;
    }

    .pdp-gallery-thumb.is-video {
        margin-bottom: 0;
    }

    .pdp-thumb-video-label {
        display: none;
    }

    .pdp-gallery-main {
        max-height: min(420px, 55vh);
    }
}

/* Cart Modern */
.cart-modern {
    padding-top: 24px;
}

.cart-modern-header {
    margin-bottom: 24px;
}

.cart-modern-header h1 {
    font-size: 54px;
    line-height: 1.08;
    margin-bottom: 6px;
    letter-spacing: -1px;
}

.cart-modern-header p {
    color: #64748b;
}

.cart-modern-layout {
    display: grid;
    grid-template-columns: 1.45fr 0.9fr;
    align-items: start;
    gap: 26px;
}

.cart-modern-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cart-item-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 16px;
    background: #fbfbfc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px;
}

.cart-item-media img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.cart-item-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px 20px;
}

.cart-item-details {
    min-width: 0;
}

.cart-item-name {
    color: var(--text-color-dynamic, var(--text-color));
    text-decoration: none;
    font-size: 17px;
    line-height: 1.45;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.cart-item-name:hover {
    color: var(--primary-color);
}

.cart-item-variation {
    font-size: 13px;
    color: #64748b;
    margin: 4px 0 0;
    line-height: 1.35;
}

.cart-item-price {
    margin: 0;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
    white-space: nowrap;
    flex-shrink: 0;
    text-align: right;
    color: #0f172a;
    align-self: start;
}

.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.cart-modern .quantity-selector {
    border-radius: 999px;
    background: #fff;
}

.cart-modern .qty-btn {
    padding: 8px 12px;
}

.cart-modern .quantity-selector input {
    width: 44px;
    padding: 8px 0;
}

.cart-modern .btn-remove {
    background: transparent;
    color: #b91c1c;
    padding: 0;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.cart-modern .btn-remove:hover {
    background: transparent;
    color: #991b1b;
}

.cart-modern .cart-summary {
    background: #fbfbfc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 22px;
    position: sticky;
    top: 100px;
}

.cart-modern .cart-summary .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
    color: #475569;
}

.cart-modern .cart-summary .summary-row.total {
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
    padding-top: 14px;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}

.cart-modern .cart-summary .summary-row span:last-child {
    white-space: nowrap;
    text-align: right;
}

.cart-item-details .stock-warning {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--warning-color, #d97706);
}

.promo-code-row {
    display: flex;
    gap: 8px;
    margin: 14px 0 16px;
}

.promo-code-row input {
    flex: 1;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 12px;
    background: #f8fafc;
}

.promo-code-row button {
    border: 0;
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 700;
    background: var(--text-color-dynamic, var(--text-color));
    color: #fff;
}

.cart-checkout-btn {
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 18px;
    letter-spacing: -0.2px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover, var(--primary-color)) 100%);
}

.cart-checkout-btn:hover {
    background: linear-gradient(135deg, var(--primary-hover, var(--primary-color)) 0%, var(--primary-color) 100%);
    color: #fff;
}

.cart-trust-list {
    margin-top: 14px;
    display: grid;
    gap: 8px;
}

.cart-trust-list p {
    color: #475569;
    font-size: 13px;
}

.cart-continue-row {
    grid-column: 1 / -1;
    margin: 8px 0 24px;
    position: relative;
    z-index: 5;
}

.cart-continue-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover, var(--primary-color)) 100%);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-md);
}

.cart-continue-btn:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-hover, var(--primary-color)) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.cart-modern .cart-summary .cart-continue-btn {
    margin-top: 12px;
}

.cart-continue-link {
    margin-top: 14px;
    display: inline-flex;
    color: var(--primary-hover, var(--primary-color));
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 12px;
    position: relative;
    z-index: 5;
    pointer-events: auto;
}

@media (max-width: 900px) {
    .cart-modern-layout {
        grid-template-columns: 1fr;
    }

    .cart-modern-header h1 {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .cart-item-card {
        grid-template-columns: 80px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .cart-item-media img {
        width: 80px;
        height: 80px;
    }

    .cart-item-top {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .cart-item-price {
        text-align: left;
        font-size: 17px;
    }

    .cart-item-name {
        font-size: 15px;
        -webkit-line-clamp: 4;
    }

    .cart-item-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cart-item-actions .quantity-selector {
        width: 100%;
        justify-content: center;
    }

    .cart-item-actions .btn-remove {
        text-align: center;
        padding: 8px 0;
    }
}

/* =========================================================
   Mobile Optimizations (≤768px / ≤480px)
   Adds compact storefront layout: 2-column product grid,
   drawer nav, stacked detail pages, sticky CTAs.
   ========================================================= */

/* Mobile-only elements: hidden on desktop, shown inside media query */
.product-detail-cta-bar,
.mobile-filter-bar { display: none; }

/* Language switcher row in nav markup: only visible inside mobile drawer (≤900px overrides below) */
.nav-language-item { display: none; }

@media (max-width: 900px) {
    .container { padding: 0 16px; }

    /* Product listing: always two cards per row on phones & tablets (narrow main + minmax(230px) was collapsing to 1 col) */
    .products-page .products-main {
        min-width: 0;
    }
    .products-grid,
    .products-premium-grid,
    .premium-arrivals .products-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
    .products-grid .product-card,
    .products-premium-grid .product-card {
        min-width: 0;
    }

    /* Homepage newsletter — stack copy + form (avoids clipped input/button) */
    .premium-newsletter-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 26px 18px;
        border-radius: 20px;
    }
    .premium-newsletter-content {
        max-width: none;
    }
    .premium-newsletter-form {
        flex: none;
        flex-direction: column;
        width: 100%;
        min-width: 0;
    }
    .premium-newsletter-form input,
    .premium-newsletter-form button {
        width: 100%;
    }
    .premium-newsletter-form button {
        white-space: normal;
    }

    /* Mobile menu drawer */
    .premium-main-nav .nav-menu.is-open {
        display: flex !important;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(86vw, 340px);
        max-width: 100vw;
        flex-direction: column;
        gap: 4px;
        padding: 80px 18px 28px;
        margin: 0;
        background: #fff;
        box-shadow: -20px 0 40px rgba(15, 23, 42, 0.18);
        z-index: 2200;
        overflow-y: auto;
        overflow-x: hidden;
        list-style: none;
        box-sizing: border-box;
        animation: drawerIn .22s ease-out;
    }
    .premium-main-nav .nav-menu.is-open li {
        width: 100%;
        min-width: 0;
    }
    .premium-main-nav .nav-menu.is-open li a {
        display: block;
        padding: 12px 12px;
        border-radius: 10px;
        font-size: 15px;
        color: #0f172a;
        text-decoration: none;
        white-space: normal;
        word-break: break-word;
    }
    .premium-main-nav .nav-menu.is-open li a:hover,
    .premium-main-nav .nav-menu.is-open li a.active {
        background: color-mix(in srgb, var(--primary-color) 10%, transparent);
        color: var(--primary-color);
    }
    .premium-main-nav .nav-menu.is-open .has-dropdown .dropdown {
        position: static;
        box-shadow: none;
        padding: 4px 0 4px 10px;
        background: transparent;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin: 4px 0 0;
        border-left: 2px solid rgba(15, 23, 42, 0.06);
        list-style: none;
        min-width: 0;
        width: auto;
    }
    .premium-main-nav .nav-menu.is-open .has-dropdown .dropdown li {
        width: 100%;
        padding: 0;
    }
    .premium-main-nav .nav-menu.is-open .has-dropdown .dropdown a {
        padding: 10px 12px;
        font-size: 14px;
        color: #475569;
        white-space: normal;
        word-break: break-word;
        background: transparent;
    }
    .premium-main-nav .nav-menu.is-open .has-dropdown .dropdown a:hover {
        background: color-mix(in srgb, var(--primary-color) 8%, transparent);
        color: var(--primary-color);
    }

    /* PL / EN pill rendered inside the mobile drawer */
    .nav-language-item {
        margin-top: auto;
        padding-top: 16px;
        border-top: 1px solid rgba(15, 23, 42, 0.08);
    }
    .nav-language-item .nav-language-switcher {
        display: inline-flex;
        gap: 4px;
        padding: 4px;
        border: 1px solid #e5e7eb;
        border-radius: 999px;
        background: #fff;
    }
    .nav-language-item .nav-language-switcher a {
        padding: 8px 16px !important;
        font-size: 13px !important;
        font-weight: 700;
        letter-spacing: 0.06em;
        border-radius: 999px;
        color: #6b7280;
        text-decoration: none;
        background: transparent !important;
    }
    .nav-language-item .nav-language-switcher a.active {
        color: var(--primary-color);
        background: color-mix(in srgb, var(--primary-color) 12%, white) !important;
    }

    /* In-drawer language row: show only ≤900px (hidden on desktop via rule below) */
    .nav-language-item { display: block; }

    body.menu-open { overflow: hidden; }
    /* Backdrop appended to <body> by JS so it lives outside .main-header's stacking context */
    .mobile-menu-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 2100;
        animation: drawerFade .22s ease-out;
    }
    body.menu-open .main-header {
        z-index: 2150;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        transform: none !important;
        filter: none !important;
    }
    .mobile-menu-toggle { position: relative; z-index: 2300; }
}

@keyframes drawerIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes drawerFade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 768px) {
    /* Layout containers — always single column on tablet/phone */
    .products-page,
    .cart-page,
    .checkout-page,
    .account-page,
    .product-detail,
    .order-details-grid,
    .checkout-guest-wrap {
        grid-template-columns: 1fr !important;
        gap: 18px;
    }
    .products-sidebar,
    .account-sidebar { order: 2; }

    /* === Products grid: TWO columns on phones (Myntra-style) === */
    .products-grid,
    .products-premium-grid,
    .premium-arrivals .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        margin: 16px 0 !important;
    }
    .product-card {
        border-radius: 12px;
        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
    }
    .product-card:hover { transform: none; box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08); }
    .products-premium-grid .product-image,
    .product-image { padding-top: 118%; }
    .product-info { padding: 10px 12px 12px; gap: 6px; }
    .product-card__meta { gap: 4px; }
    .product-name {
        font-size: 13px;
        line-height: 1.45;
        -webkit-line-clamp: 2;
    }
    .current-price,
    .products-premium-grid .current-price {
        font-size: 15px;
        font-weight: 800;
        background: none;
        -webkit-text-fill-color: initial;
        color: #0f172a;
    }
    .old-price { font-size: 11px; }
    .product-stock,
    .in-stock,
    .out-of-stock { font-size: 11px; }
    .discount-badge {
        top: 8px;
        right: 8px;
        padding: 3px 7px;
        font-size: 10px;
        border-radius: 10px;
    }
    .product-card__actions {
        padding: 0 10px 10px;
    }
    .product-card__actions .btn-add-cart {
        font-size: 12px;
        padding: 9px 10px;
        border-radius: 8px;
    }

    /* Header: smaller logo, hide secondary controls */
    .premium-nav-layout { gap: 8px; padding: 6px 0; }
    .logo { min-width: 0; overflow: hidden; }
    .logo h1 {
        font-size: 17px;
        letter-spacing: -.4px;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    .logo .logo-icon { height: 26px; }
    .premium-header-actions { gap: 4px; }
    .header-icon-btn { width: 38px; height: 38px; }
    .header-icon-btn svg { width: 20px; height: 20px; }
    /* Compact PL/EN pill on mobile */
    .header-actions .language-switcher {
        margin-left: 2px;
        padding: 1px;
        gap: 1px;
    }
    .header-actions .language-switcher a {
        font-size: 10px;
        padding: 4px 6px;
        min-height: 24px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Hero */
    .premium-hero { min-height: 360px; padding-block: 40px; margin-bottom: 32px; }
    .premium-hero-content h2 { font-size: 28px; line-height: 1.15; margin-bottom: 12px; }
    .premium-hero-content p { font-size: 14px; margin-bottom: 18px; }
    .premium-chip { font-size: 11px; padding: 5px 10px; margin-bottom: 12px; }
    .premium-hero-actions .btn { padding: 10px 18px; font-size: 14px; }

    /* Bento / categories — single column under product grid */
    .premium-bento-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; gap: 12px; }
    .premium-bento-tall { grid-row: span 1; }
    .premium-section-head h2,
    .premium-arrivals h2 { font-size: 24px; }

    /* Product detail */
    .product-detail { gap: 18px; margin: 18px 0 110px; }
    .product-info-detail h1 { font-size: 22px; margin-bottom: 12px; }
    .product-price-detail .current-price { font-size: 26px; }
    .product-description-short { font-size: 14px; line-height: 1.6; margin-bottom: 18px; }
    .gallery-thumb { width: 60px; height: 60px; }
    .product-actions { flex-wrap: wrap; gap: 10px; }
    .product-actions .quantity-selector,
    .product-actions .btn { flex: 1 1 100%; }

    /* Sticky bottom CTA bar on product detail */
    .product-detail-cta-bar {
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 900;
        display: flex;
        gap: 8px;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.96);
        border-top: 1px solid rgba(15, 23, 42, 0.08);
        box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
        backdrop-filter: blur(10px);
    }
    .product-detail-cta-bar .btn { flex: 1; padding: 12px 14px; font-size: 14px; }

    /* Products page topbar */
    .products-topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .products-modern .products-sidebar.products-filter-panel { padding: 16px; border-radius: 12px; }
    .products-filter-panel { display: none; }
    .products-filter-panel.is-open { display: block; }

    /* Floating mobile filter & sort bar (visible on /products.php) */
    .mobile-filter-bar {
        display: flex;
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 800;
        background: rgba(255, 255, 255, 0.97);
        border-top: 1px solid rgba(15, 23, 42, 0.08);
        box-shadow: 0 -6px 18px rgba(15, 23, 42, 0.08);
        backdrop-filter: blur(8px);
        margin: 0 -16px;
    }
    .mobile-filter-bar button {
        flex: 1;
        padding: 14px;
        font-size: 14px;
        font-weight: 700;
        background: transparent;
        border: none;
        color: #0f172a;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }
    .mobile-filter-bar button + button {
        border-left: 1px solid rgba(15, 23, 42, 0.08);
    }

    /* Cart page */
    .cart-modern-header h1 { font-size: 26px; }
    .cart-item-grid,
    .cart-modern-row { grid-template-columns: 80px 1fr !important; gap: 12px; }
    .cart-modern-row .cart-controls { grid-column: 1 / -1; }
    .cart-summary { position: static; }
    .cart-item-image { width: 80px; height: 80px; }

    /* Checkout */
    .checkout-form-section { padding: 18px; }
    .checkout-side-summary { position: static; margin-top: 18px; }

    /* Account */
    .account-page .account-sidebar { padding: 16px; }
    .account-page .account-content { padding: 18px; }
    .account-content table { font-size: 13px; }
    .account-content th, .account-content td { padding: 10px 8px; }

    /* Tables overflow */
    table { width: 100%; }
    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

    /* Forms */
    .form-row { grid-template-columns: 1fr !important; gap: 12px; }
    input, select, textarea, button { font-size: 16px !important; } /* prevents iOS auto-zoom */

    /* Buttons — bigger tap targets */
    .btn { padding: 12px 22px; font-size: 14px; min-height: 44px; }
    .btn-small { min-height: 36px; padding: 8px 14px; }

    /* Footer */
    .premium-footer-content,
    .footer-content { grid-template-columns: 1fr !important; gap: 24px; }
    .footer-bottom { text-align: center; flex-direction: column; gap: 8px; }

    /* Legal pages, blog, contact */
    .legal-page { padding: 22px; margin: 16px 0; border-radius: 12px; }
    .contact-layout,
    .contact-grid { grid-template-columns: 1fr !important; }
    .contact-hero h1 { font-size: 28px; }
    .contact-form-card { padding: 22px; }

    /* Section headings */
    h1 { font-size: 26px; }
    h2 { font-size: 22px; }
    h3 { font-size: 18px; }
}

@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .products-grid,
    .products-premium-grid,
    .premium-arrivals .products-grid {
        gap: 10px !important;
    }
    .product-info { padding: 8px 10px 10px; }
    .product-name { font-size: 12.5px; line-height: 1.4; }
    .product-card__actions { padding: 0 8px 8px; }
    .current-price { font-size: 14px; }
    .old-price { font-size: 11px; }
    .premium-hero-content h2 { font-size: 24px; }
    .premium-hero-content p { font-size: 13px; }
    .logo h1 { font-size: 16px; }
    .logo .logo-icon { height: 24px; }
}

