/**
 * Tab.md - Apple-style Design System for Bootstrap 5
 * Custom overrides and components
 */

/* ==========================================================================
   CSS Variables (Apple Colors)
   ========================================================================== */

:root {
    /* Primary Colors */
    --bs-primary: #0071e3;
    --bs-primary-rgb: 0, 113, 227;
    --primary: #0071e3;
    --primary-dark: #0055b3;

    /* Text Colors */
    --text-dark: #1d1d1f;
    --text-gray: #424245;
    --text-light: #86868b;

    /* Background Colors */
    --bg-light: #f5f5f7;
    --bg-white: #ffffff;

    /* Border Colors */
    --border: #d2d2d7;

    /* Status Colors */
    --success: #34c759;
    --error: #ff3b30;
    --warning: #ff9500;

    /* Bootstrap overrides */
    --bs-body-font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    --bs-body-bg: #f5f5f7;
    --bs-body-color: #1d1d1f;
    --bs-border-color: #d2d2d7;
    --bs-border-radius: 12px;
    --bs-border-radius-lg: 16px;
    --bs-border-radius-sm: 8px;
}

/* ==========================================================================
   Base Overrides
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.47059;
}

a {
    color: var(--primary);
    transition: opacity 0.2s;
}

a:hover {
    color: var(--primary-dark);
    opacity: 0.8;
}

/* ==========================================================================
   Header - Glassmorphic Apple Style
   ========================================================================== */

.header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 9999;
}

.header .container {
    height: 56px;
}

.header .container-fluid {
    height: 100%;
}

.logo {
    font-size: 21px;
    font-weight: 600;
    color: var(--primary) !important;
}

/* Navigation Links */
.header .nav-link {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-dark);
    padding: 8px 0;
    transition: color 0.2s;
}

.header .nav-link:hover {
    color: var(--primary);
}

/* Search Bar */
.search-bar {
    max-width: 400px;
}

.search-bar .form-control {
    background: var(--bg-light);
    border: none;
    border-radius: 10px 0 0 10px;
    padding: 10px 16px;
    font-size: 14px;
    height: 40px;
}

.search-bar .form-control:focus {
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
    border-color: var(--primary);
}

.search-bar .form-control::placeholder {
    color: var(--text-light);
}

.search-submit {
    background: var(--bg-light);
    border: none;
    border-radius: 0 10px 10px 0;
    padding: 0 14px;
    color: var(--text-light);
    height: 40px;
}

.search-submit:hover {
    background: #e8e8ed;
    color: var(--text-dark);
}

/* Search Dropdown */
.search-dropdown {
    top: calc(100% + 8px);
    left: 0;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    padding: 4px 0;
}

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

.search-dropdown-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 6px;
}

.search-dropdown-item {
    padding: 4px 6px;
    color: var(--text-dark);
    transition: background 0.15s;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid #f0f0f0;
}

.search-dropdown-item:last-child {
    border-bottom: none;
}

.search-dropdown-item:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.search-item-image {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.search-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.search-item-info {
    flex: 1;
    min-width: 0;
}

.search-item-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-item-category {
    font-size: 12px;
    color: var(--text-light);
}

.search-item-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
}

/* Icon Buttons */
.icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--text-dark) !important;
    transition: all 0.2s;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
}

.icon-btn:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-dark) !important;
}

.icon-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--text-dark);
    stroke: var(--text-dark);
}

/* Badge */
.icon-btn .badge {
    position: absolute;
    top: 0px;
    right: -2px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    border: 2px solid white;
    padding: 0;
}

/* Cart badge RED */
#cartBadge {
    background: #E60000 !important;
}

/* ==========================================================================
   Mobile Search Panel
   ========================================================================== */

.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-search-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    z-index: 10001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 12px;
    display: none;
    border-bottom: 1px solid var(--border);
}

.mobile-search-panel.active {
    display: block;
}

.mobile-search-overlay {
    z-index: 10000;
}

.mobile-search-panel .container {
    padding: 0;
}

.mobile-search-panel .d-flex {
    flex-wrap: nowrap;
    gap: 10px;
}

.mobile-search-input {
    border-radius: 8px !important;
    border: 1px solid var(--border) !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    height: 36px;
    background: var(--bg-light) !important;
}

.mobile-search-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.1) !important;
    background: white !important;
}

.mobile-search-close {
    white-space: nowrap;
    font-weight: 500;
    font-size: 13px;
    padding: 0 !important;
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: var(--bg-light);
    border-radius: 6px;
}

.lang-btn {
    background: transparent;
    padding: 4px 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn.active {
    background: white;
    color: var(--primary);
}

.lang-btn:hover {
    color: var(--text-dark);
}

.lang-separator {
    color: var(--border);
    font-size: 12px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    color: var(--text-dark);
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus {
    color: var(--text-dark);
    box-shadow: none;
}

/* ==========================================================================
   Mobile Search Panel
   ========================================================================== */

.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-search-panel:not(.offcanvas) {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    z-index: 10001;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mobile-search-panel:not(.offcanvas).active {
    transform: translateY(0);
}

.mobile-search-input {
    border-radius: 10px;
}

/* ==========================================================================
   Bootstrap Offcanvas Overrides (Mobile Menu)
   ========================================================================== */

.offcanvas {
    --bs-offcanvas-width: 280px;
}

.offcanvas-header {
    border-bottom: 1px solid var(--border);
}

.offcanvas-title {
    font-weight: 600;
}

.mobile-menu-nav .nav-link {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    padding: 12px 0;
    border-bottom: 1px solid var(--bg-light);
}

.mobile-menu-nav .nav-link:hover {
    color: var(--primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border);
}

.footer-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

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

.footer-links a {
    font-size: 14px;
    color: var(--text-light);
}

.footer-links a:hover {
    color: var(--primary);
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.social-link:hover {
    background: var(--bg-light);
    color: var(--primary) !important;
}

/* ==========================================================================
   Buttons - Apple Style
   ========================================================================== */

.btn-primary {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary-dark);
    --bs-btn-hover-border-color: var(--primary-dark);
    --bs-btn-active-bg: var(--primary-dark);
    --bs-btn-active-border-color: var(--primary-dark);
    border-radius: 980px;
    font-weight: 400;
    padding: 12px 24px;
}

.btn-outline-primary {
    --bs-btn-color: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary);
    --bs-btn-hover-border-color: var(--primary);
    border-radius: 980px;
    font-weight: 400;
}

.btn-secondary {
    --bs-btn-bg: transparent;
    --bs-btn-border-color: var(--border);
    --bs-btn-color: var(--primary);
    --bs-btn-hover-bg: var(--bg-light);
    --bs-btn-hover-border-color: var(--border);
    --bs-btn-hover-color: var(--primary);
    border-radius: 980px;
    font-weight: 400;
}

/* ==========================================================================
   Forms - Apple Style
   ========================================================================== */

.form-control {
    border-color: var(--border);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 15px;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.form-control::placeholder {
    color: var(--text-light);
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-select {
    border-color: var(--border);
    border-radius: 12px;
    padding: 12px 16px;
}

.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

/* ==========================================================================
   Cards - Apple Style
   ========================================================================== */

.card {
    border: none;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Product Cards
   ========================================================================== */

.product-card {
    background: white;
    border-radius: 18px;
    padding: 20px;
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.product-image-wrapper {
    position: relative;
    display: block;
    aspect-ratio: 1/1;
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.product-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s;
}

.product-card:hover .product-image {
    transform: translate(-50%, -50%) scale(1.05);
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: var(--primary);
    color: white;
    z-index: 2;
}

.product-badge.hot {
    background: var(--error);
}

.product-badge.new {
    background: var(--success);
}

/* Product Card - Color Dots */
.product-color-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.product-description {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 12px;
    line-height: 1.4;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.spec-badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
}

.product-quick-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 3;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s;
}

.product-card:hover .product-quick-actions {
    opacity: 1;
    transform: translateX(0);
}

.quick-action-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 50%;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quick-action-btn:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.quick-action-btn.favorite-btn:hover {
    color: var(--error);
}

.quick-action-btn.favorite-btn.active {
    background: var(--error);
    color: white;
    border-color: var(--error);
}

.quick-action-btn.favorite-btn.active svg path {
    fill: white;
}

.quick-action-btn.compare-btn:hover {
    color: var(--primary);
}

.quick-action-btn.compare-btn.active {
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--primary) !important;
    border: 2px solid var(--primary) !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.2);
}

/* Remove button for favorites page - always visible */
.product-quick-actions:has(.remove-btn) {
    opacity: 1;
    transform: translateX(0);
}

.quick-action-btn.remove-btn:hover {
    color: var(--error);
    background: #fff5f5;
    border-color: var(--error);
}

.product-colors {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.product-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.3;
}

.product-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.spec-tag {
    padding: 4px 10px;
    background: var(--bg-light);
    border-radius: 12px;
    font-size: 12px;
    color: var(--text-gray);
}

.product-price {
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.price-current {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.price-old {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 8px;
}

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

.product-actions .btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
}

/* ==========================================================================
   Products Grid
   ========================================================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Custom Select */
.custom-select-wrapper {
    position: relative;
    min-width: auto;
    max-width: 140px;
}

.custom-select {
    position: relative;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-dark);
    background-color: #fff;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-select-trigger .check-icon {
    display: block;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    color: var(--text-dark);
}

.custom-select-trigger span {
    flex: 1;
}

.custom-select.open .custom-select-trigger {
    border-color: #d2d2d7;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: #e8e8ed;
}

.custom-select-arrow {
    color: #86868b;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.custom-select.open .custom-select-arrow {
    transform: rotate(180deg);
}

.custom-options {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #d2d2d7;
    border-top: 1px solid #e8e8ed;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 100;
    display: none;
    overflow: hidden;
}

.custom-select.open .custom-options {
    display: block;
}

.custom-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    font-size: 13px;
    color: var(--text-dark);
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #e8e8ed;
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover {
    background: #f5f5f7;
}

.custom-option.selected {
    background-color: #f5f5f7 !important;
    color: var(--text-dark) !important;
}

.custom-option .check-icon {
    visibility: hidden;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.custom-option.selected .check-icon {
    visibility: visible;
}

/* ==========================================================================
   Auth Pages (Login/Register)
   ========================================================================== */

.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.auth-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.auth-description {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.6;
}

.auth-description a {
    color: rgb(0, 102, 204);
    text-decoration: underline;
}

.auth-form-apple .form-control {
    padding: 14px 16px;
    font-size: 15px;
    border-radius: 10px;
    border: 1px solid #d2d2d7;
}

.auth-form-apple .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.auth-options {
    font-size: 14px;
}

.forgot-link {
    color: rgb(0, 102, 204);
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.auth-separator {
    display: flex;
    align-items: center;
    margin: 28px 0;
}

.auth-separator::before,
.auth-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #d2d2d7;
}

.auth-separator span {
    padding: 0 16px;
    font-size: 13px;
    color: var(--text-light);
}

.social-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.apple-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    background: #fff;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.apple-social-btn:hover {
    background: #f5f5f7;
    text-decoration: none;
}

.auth-icon {
    margin-bottom: 24px;
}

.auth-back-link {
    margin-top: 32px;
}

.auth-back-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgb(0, 102, 204);
    text-decoration: none;
    font-size: 14px;
}

.auth-back-link a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Sidebar / Filters
   ========================================================================== */

.sidebar {
    background: transparent;
    padding: 0;
}

.filter-group {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--bg-light);
}

.filter-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-gray);
}

.filter-item:hover {
    color: var(--text-dark);
}

.filter-count {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-light);
}

.brand-search-wrapper {
    margin-bottom: 12px;
}

.brand-search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
}

.brand-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.1);
}

.filter-list {
    max-height: 300px;
    overflow-y: auto;
}

.filter-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumbs {
    background: var(--bg-light);
    padding: 12px 0;
}

.breadcrumb {
    font-size: 13px;
}

.breadcrumb-item a {
    color: rgb(0, 102, 204);
    text-decoration: underline;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.breadcrumb-item.active {
    color: var(--text-light);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-light);
}

/* ==========================================================================
   Auth Pages (Login/Register)
   ========================================================================== */

.auth-page {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.auth-description {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 32px;
}

.auth-form-apple {
    text-align: left;
}

.auth-form-apple .form-control {
    margin-bottom: 16px;
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-dark);
    cursor: pointer;
}

.forgot-link {
    font-size: 14px;
    color: var(--primary);
}

.auth-separator {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--text-light);
    font-size: 13px;
}

.auth-separator::before,
.auth-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-separator span {
    padding: 0 16px;
}

.social-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.apple-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.apple-social-btn:hover {
    background: var(--bg-light);
    border-color: #86868b;
    text-decoration: none;
}

.auth-icon {
    margin-bottom: 24px;
}

.auth-back-link {
    margin-top: 32px;
}

.auth-back-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: var(--primary);
}

/* ==========================================================================
   Account Pages
   ========================================================================== */

.account-page {
    padding: 40px 0;
}

.account-sidebar {
    background: var(--bg-white);
    border-radius: 18px;
    padding: 24px;
}

.account-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-dark);
    border-radius: 10px;
    margin-bottom: 4px;
    font-size: 15px;
}

.account-nav .nav-link:hover {
    background: var(--bg-light);
}

.account-nav .nav-link.active {
    background: var(--primary);
    color: white;
}

.account-content {
    background: var(--bg-white);
    border-radius: 18px;
    padding: 32px;
}

.account-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--bg-light);
}

.account-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
}

/* ==========================================================================
   Modals - Apple Style
   ========================================================================== */

.modal-content {
    border: none;
    border-radius: 18px;
}

.modal-header {
    border-bottom: 1px solid var(--bg-light);
    padding: 20px 24px;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid var(--bg-light);
    padding: 16px 24px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 32px;
}

/* ==========================================================================
   Hero Slider
   ========================================================================== */

.hero-slider {
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
    padding: 24px 0;
}

.hero-slider .container {
    position: relative;
}

.hero-slider .slider-wrapper {
    border-radius: 18px;
    overflow: hidden;
}

.slider-wrapper {
    overflow: hidden;
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease-out;
}

.slide {
    flex: 0 0 100%;
    min-width: 100%;
}

.slide-banner {
    display: block;
    width: 100%;
}

.slide-banner img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    z-index: 10;
    transition: all 0.2s;
}

.slider-arrow:hover {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.slider-arrow.prev {
    left: 16px;
}

.slider-arrow.next {
    right: 16px;
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.slider-dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

/* ==========================================================================
   HTML Banners in Slider
   ========================================================================== */

.slide-html {
    display: block;
    width: 100%;
    height: 100%;
}

.html-banner {
    width: 100%;
    height: 100%;
    min-height: 500px;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* New Year Banner */
.new-year-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.new-year-banner .banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1467810563316-b5476525c0f9?w=1400') center/cover;
    opacity: 0.15;
}

.new-year-banner .snowflakes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.new-year-banner .snowflakes span {
    position: absolute;
    color: rgba(255, 255, 255, 0.4);
    font-size: 24px;
    animation: snowfall 8s linear infinite;
}

.new-year-banner .snowflakes span:nth-child(1) { left: 10%; animation-delay: 0s; }
.new-year-banner .snowflakes span:nth-child(2) { left: 30%; animation-delay: 1.5s; }
.new-year-banner .snowflakes span:nth-child(3) { left: 50%; animation-delay: 3s; }
.new-year-banner .snowflakes span:nth-child(4) { left: 70%; animation-delay: 4.5s; }
.new-year-banner .snowflakes span:nth-child(5) { left: 90%; animation-delay: 6s; }

@keyframes snowfall {
    0% { transform: translateY(-100px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(500px) rotate(360deg); opacity: 0; }
}

.banner-content {
    position: relative;
    z-index: 2;
    padding: 20px 30px;
    max-width: 60%;
}

.banner-logo {
    background: #fff;
    color: #e63946;
    font-family: 'SF Pro Display', -apple-system, sans-serif;
    font-weight: 800;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 12px;
}

.banner-logo sup {
    color: #333;
    font-size: 8px;
    font-weight: 600;
}

.banner-title {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 8px;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
}

.banner-title span {
    color: #ffd700;
}

.banner-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.banner-discount {
    display: inline-block;
    background: #e63946;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.banner-cta {
    display: inline-block;
    background: #ffd700;
    color: #1a1a2e;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.banner-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.4);
}

.banner-phones {
    position: absolute;
    right: 30px;
    bottom: 10px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    z-index: 2;
}

.banner-phones .phone {
    width: 50px;
    height: 100px;
    background: linear-gradient(180deg, #333 0%, #1a1a1a 100%);
    border-radius: 10px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.banner-phones .phone::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border-radius: 8px;
}

.banner-phones .phone-1::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.banner-phones .phone-2 {
    height: 110px;
    width: 55px;
    z-index: 2;
}

.banner-phones .phone-2::before {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.banner-phones .phone-3::before {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.new-year-banner .fireworks {
    position: absolute;
    top: 15px;
    right: 120px;
    font-size: 30px;
    animation: pulse 2s ease-in-out infinite;
}

.new-year-banner .champagne {
    position: absolute;
    bottom: 15px;
    right: 180px;
    font-size: 25px;
    animation: bounce 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Responsive HTML Banners */
@media (max-width: 991px) {
    .banner-content {
        max-width: 70%;
        padding: 15px 25px;
    }
    .banner-title {
        font-size: 22px;
    }
    .banner-phones {
        right: 20px;
    }
    .banner-phones .phone {
        width: 40px;
        height: 80px;
    }
    .banner-phones .phone-2 {
        width: 45px;
        height: 90px;
    }
}

@media (max-width: 767px) {
    .slide-banner img {
        max-height: 300px;
    }
    .html-banner {
        min-height: 300px;
    }
    .banner-content {
        max-width: 100%;
        padding: 15px 20px;
        text-align: center;
    }
    .banner-logo {
        font-size: 12px;
        padding: 5px 10px;
        margin-bottom: 8px;
    }
    .banner-title {
        font-size: 18px;
    }
    .banner-subtitle {
        font-size: 10px;
    }
    .banner-discount {
        font-size: 16px;
        padding: 6px 14px;
    }
    .banner-cta {
        font-size: 10px;
        padding: 6px 14px;
    }
    .banner-phones {
        display: none;
    }
    .new-year-banner .fireworks,
    .new-year-banner .champagne {
        display: none;
    }
}

/* ==========================================================================
   Products Carousel
   ========================================================================== */

.products-section {
    padding: 60px 0;
}

.products-carousel-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

.products-wrapper {
    overflow: hidden;
}

.products-grid {
    display: flex;
    gap: 24px;
    transition: transform 0.4s ease;
}

.products-grid .product-card {
    flex: 0 0 calc(25% - 18px);
    min-width: calc(25% - 18px);
}

.products-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    z-index: 10;
    transition: all 0.2s;
}

.products-arrow:hover {
    background: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.products-arrow.prev {
    left: 8px;
}

.products-arrow.next {
    right: 8px;
}

.view-all-section {
    text-align: center;
    margin-top: 48px;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 980px;
    font-size: 15px;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s;
}

.btn-view-all:hover {
    background: var(--bg-light);
    border-color: var(--primary);
    color: var(--primary);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--warning);
    margin-bottom: 8px;
}

.section-title {
    font-size: 36px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-light);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: var(--bg-light);
    border-top: 1px solid var(--border);
}

.footer-title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.72);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.footer-links a {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.8) !important;
    text-decoration: none !important;
}

.footer-links a:hover {
    text-decoration: underline !important;
}

.footer-newsletter-text {
    color: rgba(0, 0, 0, 0.72);
}

.footer-social .social-link {
    color: rgba(0, 0, 0, 0.72);
}

.footer-social .social-link:hover {
    color: var(--primary);
}

.footer-copyright {
    color: rgba(0, 0, 0, 0.72);
}

.footer-legal a {
    color: rgba(0, 0, 0, 0.72);
}

.footer-legal a:hover {
    color: var(--primary);
}

.footer-location {
    color: rgba(0, 0, 0, 0.72);
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.text-primary {
    color: var(--primary) !important;
}

.bg-light-custom {
    background: var(--bg-light) !important;
}

.rounded-apple {
    border-radius: 18px !important;
}

.shadow-apple {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08) !important;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 991.98px) {
    .header {
        height: 52px;
    }

    .hero-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .products-carousel-container {
        padding: 0 50px;
    }

    .products-grid .product-card {
        flex: 0 0 calc(33.333% - 16px);
        min-width: calc(33.333% - 16px);
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
    }

    .slider-arrow.prev {
        left: 10px;
    }

    .slider-arrow.next {
        right: 10px;
    }
}

@media (max-width: 767.98px) {
    .products-carousel-container {
        padding: 0 40px;
    }

    .products-grid .product-card {
        flex: 0 0 calc(50% - 12px);
        min-width: calc(50% - 12px);
    }

    .products-grid {
        gap: 16px;
    }

    .product-card {
        padding: 12px;
    }

    .product-name {
        font-size: 14px;
    }

    .price-current {
        font-size: 16px;
    }

    .auth-title {
        font-size: 26px;
    }

    .social-auth {
        grid-template-columns: 1fr;
    }

    .slider-arrow {
        width: 36px;
        height: 36px;
    }

    .products-arrow {
        width: 36px;
        height: 36px;
    }
}

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

    .products-grid .product-card {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .products-arrow {
        display: none;
    }

    .slider-arrow {
        width: 32px;
        height: 32px;
    }

    .slider-arrow.prev {
        left: 8px;
    }

    .slider-arrow.next {
        right: 8px;
    }
}

/* ==========================================================================
   Auth Pages - Apple Style
   ========================================================================== */

.auth-page {
    min-height: calc(100vh - 56px - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.auth-page .container {
    max-width: 600px !important;
}

.auth-wrapper {
    max-width: 500px !important;
    width: 100% !important;
    margin: 0 auto;
    text-align: center;
}

.auth-title {
    font-size: 32px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.auth-description {
    font-size: 17px;
    color: var(--text-gray);
    margin-bottom: 32px;
    line-height: 1.5;
}

.auth-description a {
    color: var(--primary);
    text-decoration: none;
}

.auth-description a:hover {
    text-decoration: underline;
}

/* Apple-style Grouped Input Box */
.apple-input-box {
    border: 1px solid #86868b;
    border-radius: 12px;
    background: var(--bg-light);
    overflow: hidden;
    margin-bottom: 16px;
}

.apple-input-field {
    padding: 10px 16px;
    position: relative;
}

.apple-input-field:not(:last-child) {
    border-bottom: 1px solid #86868b;
}

.apple-input-field label {
    display: block;
    font-size: 14px;
    color: #6e6e73;
    margin-bottom: 4px;
    text-align: left;
}

.apple-input-field input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 17px;
    color: #49494E;
    padding: 0;
}

.apple-input-field input::placeholder {
    color: var(--text-light);
}

.apple-input-field input:focus {
    outline: none;
}

/* Auth Form Controls */
.auth-form-apple .form-control {
    border: 1px solid #86868b;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 17px;
    color: #49494E;
    background: var(--bg-light);
}

.auth-form-apple .form-control:focus {
    border-color: #86868b;
    box-shadow: none;
    background: var(--bg-light);
}

.auth-form-apple .form-control::placeholder {
    color: #6e6e73;
}

.auth-hr {
    border: none;
    border-top: 1px solid #d2d2d7;
    margin: 24px 0;
}

.auth-form-apple .form-label {
    font-size: 14px;
    color: #6e6e73;
    margin-bottom: 4px;
}

/* Auth Options Row */
.auth-options {
    margin-bottom: 20px;
    text-align: left;
}

.auth-options .form-check {
    margin: 0;
}

.auth-options .form-check-input {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.auth-options .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.auth-options .form-check-label {
    font-size: 13px;
    color: var(--text-gray);
    margin-left: 4px;
}

.forgot-link {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Auth Form Button */
.auth-form-apple .btn-primary {
    padding: 16px 24px;
    font-size: 17px;
    font-weight: 400;
    border-radius: 8px;
    margin-top: 8px;
    background-color: #3478f6;
    border-color: #3478f6;
}

.auth-form-apple .btn-primary:hover {
    background-color: #2968e6;
    border-color: #2968e6;
}

/* Auth Separator */
.auth-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
}

.auth-separator::before,
.auth-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-separator span {
    padding: 0 16px;
    font-size: 13px;
    color: var(--text-light);
}

/* Social Auth Buttons */
.social-auth {
    display: flex;
    gap: 12px;
}

.apple-social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}

.apple-social-btn:hover {
    background: #f5f5f7;
    text-decoration: none;
}


/* ==========================================================================
   Favorites Page
   ========================================================================== */

.favorite-item {
    transition: opacity 0.3s, transform 0.3s;
}

.remove-favorite-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 50%;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.remove-favorite-btn:hover {
    background: #fff5f5;
    border-color: #ff3b30;
    color: #ff3b30;
    transform: scale(1.1);
}

.remove-favorite-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* ==========================================================================
   Compare Page
   ========================================================================== */

.compare-section {
    padding: 0;
}

/* Page Header */
.page-header {
    background: white;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.page-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 22px;
}

.page-header .page-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.page-header .page-subtitle {
    font-size: 14px;
    color: var(--text-gray);
}

/* ==========================================================================
   Compare Page Styles (matches html2 reference)
   ========================================================================== */

/* Products Wrapper & Carousel */
.products-wrapper {
    background: transparent;
    border-radius: 12px;
    padding: 32px 24px;
    margin-bottom: 0;
    position: relative;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Carousel Navigation - Hidden on desktop, shown on mobile */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--border);
    display: none; /* Hidden by default on desktop */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background: var(--bg-light);
    border-color: var(--text-dark);
}

.carousel-nav.prev {
    left: -12px;
}

.carousel-nav.next {
    right: -12px;
}

.carousel-nav svg {
    width: 18px;
    height: 18px;
}

.carousel-nav.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Compare Products Grid */
.compare-products-grid {
    display: grid;
    grid-template-columns: 1fr repeat(var(--product-count, 4), 1fr);
    gap: 24px;
}

/* Products Spacer (Sidebar) - Hidden on desktop */
.products-spacer {
    display: none;
}

.filter-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg-white);
    cursor: pointer;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-gray);
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.sidebar-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-btn {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.sidebar-btn-primary {
    background: var(--primary);
    color: white;
}

.sidebar-btn-primary:hover {
    background: var(--primary-dark);
}

.sidebar-btn-secondary {
    background: var(--bg-light);
    color: var(--text-gray);
}

.sidebar-btn-secondary:hover {
    background: var(--border);
}

/* Compare Product Card */
.compare-product-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 24px;
    position: relative;
    text-align: center;
}

.remove-product {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: var(--text-gray);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
    padding: 0;
    padding-bottom: 2px;
    z-index: 10;
}

.remove-product:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
}

.product-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.product-card-badge.new {
    background: var(--primary);
    color: white;
}

.compare-product-card .product-image {
    position: static;
    transform: none;
    max-width: none;
    max-height: none;
    width: auto;
    height: auto;
    object-fit: contain;
    text-align: center;
    margin: 40px 0 20px;
}

.compare-product-card .product-image img {
    max-width: 180px;
    height: auto;
    position: static;
    transform: none;
}

.compare-product-card .product-colors {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}

/* Color Swatch - with active ring */
.compare-product-card .color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.compare-product-card .color-swatch.active::after {
    content: '';
    position: absolute;
    inset: -3px;
    border: 2px solid var(--primary);
    border-radius: 50%;
}

.product-card-name {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.product-card-specs {
    font-size: 13px;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 12px;
}

.compare-product-card .product-price {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.compare-product-card .product-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.compare-btn:not(.quick-action-btn) {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.compare-btn:not(.compare-btn-secondary):not(.quick-action-btn) {
    background: var(--primary);
    color: white;
}

.compare-btn:not(.compare-btn-secondary):not(.quick-action-btn):hover {
    background: var(--primary-dark);
}

.compare-btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--primary);
}

.compare-btn-secondary:hover {
    background: var(--bg-light);
}

/* Specifications Table */
.specs-wrapper {
    background: white;
    border-radius: 12px;
    padding: 0 24px 32px 24px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.specs-table {
    width: 100%;
    display: grid;
    grid-template-columns: 200px repeat(var(--product-count, 4), 1fr);
    gap: 24px;
}

.specs-table colgroup,
.specs-table thead,
.specs-table tbody {
    display: contents;
}

.specs-table tr {
    display: contents;
}

.category-row {
    background: none;
}

.spec-category-header {
    font-size: 18px;
    font-weight: 600;
    padding: 24px 0 16px;
    border-bottom: 1px solid var(--bg-light);
    color: var(--text-dark);
    grid-column: 1 / -1;
}

.spec-label,
.spec-value {
    padding: 12px 16px;
    border-bottom: 1px solid var(--bg-light);
}

.spec-label {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

.spec-value {
    font-size: 14px;
    color: var(--text-dark);
    text-align: center;
}

.spec-value.highlight {
    background: #e3f2fd;
    color: var(--primary);
    font-weight: 600;
    border-radius: 6px;
}

/* Compare Page Responsive */
@media (max-width: 1024px) {
    /* Products - CAROUSEL MODE */
    .compare-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .products-wrapper {
        padding: 20px 12px;
    }

    .compare-product-card {
        padding: 12px;
    }

    /* Show carousel navigation on mobile */
    .carousel-nav {
        display: flex;
    }

    /* Specs Table - Show only label + 2 products on mobile */
    .specs-table {
        grid-template-columns: 100px repeat(2, 1fr);
        gap: 8px;
    }

    .specs-wrapper {
        padding: 0 12px 24px 12px;
    }

    .spec-label,
    .spec-value {
        padding: 10px 6px;
        font-size: 13px;
    }

    .spec-category-header {
        font-size: 16px;
        padding: 20px 0 12px;
    }

    /* Hide spec values for products 2 and 3 on mobile (will be shown by JS based on carousel) */
    .spec-value[data-product="2"],
    .spec-value[data-product="3"] {
        display: none;
    }
}

@media (max-width: 768px) {
    .page-header .page-title {
        font-size: 24px;
    }

    .compare-products-grid {
        gap: 16px;
    }

    .compare-product-card {
        padding: 20px;
    }

    .compare-product-card .product-image img {
        max-width: 140px;
    }

    .spec-label {
        font-size: 12px;
        padding: 10px 8px;
    }

    .spec-value {
        font-size: 12px;
        padding: 10px 8px;
    }
}

/* Extra small screens - 400px and below */
@media (max-width: 400px) {
    /* Prevent horizontal overflow */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* Header adjustments for small screens */
    .header .container {
        padding-left: 6px;
        padding-right: 6px;
        overflow: visible;
    }

    .header {
        overflow: visible;
    }

    .logo {
        font-size: 16px;
        flex-shrink: 0;
    }

    .mobile-menu-btn {
        margin-right: 4px !important;
    }

    .nav-actions {
        gap: 2px !important;
        flex-shrink: 0;
    }

    .nav-actions .icon-btn {
        width: 32px;
        height: 32px;
        padding: 0 !important;
    }

    .nav-actions .icon-btn svg {
        width: 16px;
        height: 16px;
    }

    .nav-actions .badge,
    .icon-btn .badge {
        font-size: 8px;
        width: 14px;
        height: 14px;
        min-width: 14px;
        top: -2px;
        right: -4px;
    }

    /* Hide language selector on very small screens */
    .language-selector {
        display: none !important;
    }

    /* Favorites & Products listing - 1 column with centered image */
    .favorites-container .product-card,
    .products-listing .product-card {
        text-align: center;
    }

    .favorites-container .product-image-wrapper,
    .products-listing .product-image-wrapper {
        max-width: 200px;
        margin: 0 auto 12px auto;
    }

    .favorites-container .product-info,
    .products-listing .product-info {
        text-align: center;
    }

    .favorites-container .product-colors,
    .products-listing .product-colors {
        justify-content: center;
    }

    .favorites-container .product-actions,
    .products-listing .product-actions {
        justify-content: center;
    }

    .favorites-container .product-actions .btn,
    .products-listing .product-actions .btn {
        max-width: 250px;
    }

    /* Products listing - force 1 column on very small screens */
    .products-listing .col-6 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Products toolbar - smaller on mobile */
    .products-toolbar {
        gap: 8px;
    }

    .products-count {
        font-size: 12px;
    }

    .custom-select-wrapper {
        min-width: 100px;
        max-width: 130px;
    }

    .custom-select-trigger {
        padding: 6px 8px !important;
        font-size: 11px !important;
        gap: 3px;
    }

    .custom-select-trigger span {
        font-size: 11px;
    }

    .custom-select-trigger svg {
        width: 10px;
        height: 10px;
    }

    .page-header {
        max-width: 100vw;
        overflow: hidden;
    }

    .compare-container {
        padding: 0 8px;
        margin: 15px auto;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .page-header-content {
        padding: 0 8px;
        max-width: 100%;
    }

    .products-wrapper {
        max-width: 100%;
        box-sizing: border-box;
    }

    .specs-wrapper {
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-header .page-title {
        font-size: 20px;
    }

    .page-header .page-subtitle {
        font-size: 12px;
    }

    /* Keep 2 products side by side */
    .compare-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .products-wrapper {
        padding: 12px 8px;
    }

    .compare-product-card {
        padding: 8px;
    }

    .compare-product-card .product-image {
        margin: 20px 0 10px;
    }

    .compare-product-card .product-image img {
        max-width: 100px;
    }

    .compare-product-card .product-colors {
        margin-bottom: 8px;
    }

    .compare-product-card .color-swatch {
        width: 16px;
        height: 16px;
    }

    .product-card-name {
        font-size: 12px;
        margin-bottom: 2px;
    }

    .product-card-specs {
        font-size: 10px;
        margin-bottom: 4px;
    }

    .compare-product-card .product-price {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .compare-btn {
        padding: 8px 10px;
        font-size: 11px;
    }

    .product-card-badge {
        padding: 2px 6px;
        font-size: 9px;
        top: 6px;
        left: 6px;
    }

    .remove-product {
        width: 24px;
        height: 24px;
        font-size: 16px;
        top: 6px;
        right: 6px;
    }

    /* Carousel nav smaller - hidden on very small screens */
    .carousel-nav {
        display: none;
    }

    .products-wrapper {
        overflow: hidden;
    }

    /* Specs table for very small screens */
    .specs-wrapper {
        padding: 0 8px 16px 8px;
    }

    .specs-table {
        grid-template-columns: 70px repeat(2, 1fr);
        gap: 4px;
    }

    .spec-category-header {
        font-size: 14px;
        padding: 16px 0 10px;
    }

    .spec-label,
    .spec-value {
        padding: 8px 4px;
        font-size: 10px;
    }

    .spec-value.highlight {
        border-radius: 4px;
    }

    /* Favorites page - 1 product per row on very small screens */
    .favorites-container .row > .col-6 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }

    .favorites-container .product-card {
        max-width: 100%;
    }

    .favorites-container .product-image-wrapper {
        height: 200px;
    }

    /* Products page - 1 product per row on very small screens */
    .products-grid .col-6 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ==========================================================================
   Product Detail Page
   ========================================================================== */

/* Gallery Container */
.product-gallery-container {
    background: white;
    border-radius: 18px;
    padding: 24px;
    position: sticky;
    top: 80px;
}

/* Gallery Navigation */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    z-index: 10;
    transition: all 0.2s;
}

.gallery-nav:hover {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.gallery-prev {
    left: 16px;
}

.gallery-next {
    right: 16px;
}

/* Thumbnails */
.gallery-thumbnails-wrapper {
    overflow: hidden;
    position: relative;
}

.gallery-thumbnails {
    display: flex;
    gap: 12px;
    padding-bottom: 8px;
    width: max-content;
    transition: transform 0.3s ease;
}

.thumbnail {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    background: var(--bg-light);
}

.thumbnail:hover {
    border-color: var(--border);
}

.thumbnail.active {
    border-color: var(--primary);
}

/* Product Info Container */
.product-info-container {
    background: white;
    border-radius: 18px;
    padding: 32px;
}

.product-detail-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: var(--error);
    color: white;
    margin-bottom: 16px;
}

.product-detail-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-detail-subtitle {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 24px;
}

/* Price Section */
.product-price-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--bg-light);
}

.product-price-section .price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.product-price-section .price-current {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
}

.product-price-section .price-old {
    font-size: 18px;
    color: var(--text-light);
    text-decoration: line-through;
}

.price-savings {
    display: inline-block;
    padding: 4px 12px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

/* Installment Section */
.installment-section {
    background: var(--bg-light);
    border-radius: 12px;
    margin-bottom: 24px;
    overflow: hidden;
}

.installment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.installment-header:hover {
    background: rgba(0, 0, 0, 0.02);
}

.installment-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.installment-label {
    font-size: 13px;
    color: var(--text-light);
}

.installment-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.installment-badge-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.installment-badge {
    padding: 4px 10px;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.installment-period {
    font-size: 14px;
    color: var(--text-gray);
}

.installment-arrow {
    color: var(--text-light);
    transition: transform 0.3s;
}

.installment-section.expanded .installment-arrow {
    transform: rotate(180deg);
}

.installment-details {
    display: none;
    padding: 0 20px 20px;
}

.installment-section.expanded .installment-details {
    display: block;
}

.installment-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
}

.installment-table-header,
.installment-table-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px 16px;
}

.installment-table-header {
    background: rgba(0, 0, 0, 0.02);
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.installment-table-row .highlight {
    font-weight: 600;
    color: var(--primary);
}

.installment-apply-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 16px;
}

.installment-apply-btn:hover {
    background: var(--primary-dark);
}

.installment-steps {
    background: white;
    border-radius: 10px;
    padding: 16px;
}

.installment-steps-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.installment-steps-header svg {
    color: var(--primary);
}

.installment-steps-list {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* Option Sections (Color/Storage) */
.option-section {
    margin-bottom: 24px;
}

.option-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

/* Color Options */
.color-options {
    display: flex;
    gap: 12px;
}

.color-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.color-option::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: border-color 0.2s;
}

.color-option:hover::after,
.color-option.active::after {
    border-color: var(--primary);
}

/* Storage Options */
.storage-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.storage-option {
    flex: 1;
    min-width: 100px;
    padding: 14px 16px;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.storage-option:hover {
    border-color: var(--border);
}

.storage-option.active {
    border-color: var(--primary);
    background: rgba(0, 113, 227, 0.05);
}

.storage-size {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.storage-price {
    font-size: 13px;
    color: var(--text-light);
}

.storage-option.active .storage-price {
    color: var(--primary);
}

/* Product Actions */
.product-detail-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.product-detail-actions .btn-add-cart {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 500;
}

.btn-icon-action {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon-action:hover {
    background: white;
    border-color: var(--primary);
    color: var(--primary);
}

/* Delivery Info */
.delivery-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--bg-light);
}

.delivery-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.delivery-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 10px;
    flex-shrink: 0;
}

.delivery-icon svg {
    color: var(--success);
}

.delivery-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.delivery-subtitle {
    font-size: 13px;
    color: var(--text-light);
}

/* Specifications Section */
.specs-section {
    background: white;
    padding: 60px 0;
    margin-top: 40px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.spec-category {
    padding: 24px;
    background: var(--bg-light);
    border-radius: 16px;
}

.spec-category-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.spec-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.spec-name {
    font-size: 14px;
    color: var(--text-light);
    flex-shrink: 0;
}

.spec-item .spec-value {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
    text-align: right;
}

/* Rate Period Buttons (Modal) */
.rate-period-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 20px;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 80px;
}

.rate-period-btn:hover {
    border-color: var(--border);
}

.rate-period-btn.active {
    border-color: var(--primary);
    background: rgba(0, 113, 227, 0.05);
}

.rate-percent {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.rate-months {
    font-size: 12px;
    color: var(--text-light);
}

/* Product Detail Responsive */
@media (max-width: 991.98px) {
    .product-gallery-container {
        position: static;
    }

    .product-detail-title {
        font-size: 24px;
    }

    .product-price-section .price-current {
        font-size: 28px;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .product-gallery-container,
    .product-info-container {
        padding: 20px;
    }

    .product-detail-title {
        font-size: 22px;
    }

    .product-detail-actions {
        flex-wrap: wrap;
    }

    .product-detail-actions .btn-add-cart {
        width: 100%;
        flex: 0 0 100%;
    }

    .btn-icon-action {
        flex: 1;
    }

    .gallery-nav {
        width: 36px;
        height: 36px;
    }

    .gallery-prev {
        left: 8px;
    }

    .gallery-next {
        right: 8px;
    }

    .thumbnail {
        flex: 0 0 60px;
        width: 60px;
        height: 60px;
    }

    .storage-options {
        flex-direction: column;
    }

    .storage-option {
        min-width: 100%;
    }
}

@media (max-width: 400px) {
    .product-gallery-container,
    .product-info-container {
        padding: 16px;
        border-radius: 12px;
    }

    .product-detail-title {
        font-size: 20px;
    }

    .product-price-section .price-current {
        font-size: 24px;
    }

    .product-price-section .price-old {
        font-size: 14px;
    }

    .installment-header {
        padding: 12px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .installment-badge-group {
        width: 100%;
        justify-content: space-between;
    }

    .color-option {
        width: 28px;
        height: 28px;
    }

    .spec-category {
        padding: 16px;
    }

    .spec-item {
        flex-direction: column;
        gap: 4px;
    }

    .spec-item .spec-value {
        text-align: left;
    }

    /* Thumbnails - smaller on very small screens */
    .thumbnail {
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .gallery-thumbnails {
        gap: 6px;
        padding-bottom: 4px;
    }

    .gallery-thumbnails-wrapper {
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .product-gallery-container {
        overflow: hidden;
    }

    .gallery-nav {
        width: 32px;
        height: 32px;
    }

    .gallery-prev {
        left: 8px;
    }

    .gallery-next {
        right: 8px;
    }
}

/* ===========================================
   ACCOUNT PAGES (Apple Style)
   =========================================== */

.account-page {
    background: #f5f5f7;
    min-height: calc(100vh - 80px);
    padding: 40px 20px;
}

.account-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Simple Sidebar */
.account-sidebar-simple {
    padding-top: 20px;
}

.sidebar-profile {
    margin-bottom: 32px;
}

.sidebar-avatar {
    width: 80px;
    height: 80px;
    background: #e8e8ed;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.sidebar-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.sidebar-email {
    font-size: 14px;
    color: var(--text-gray);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-link {
    display: block;
    padding: 10px 0;
    font-size: 17px;
    color: #1d1d1f;
    text-decoration: none;
    transition: color 0.2s;
}

.sidebar-link:hover {
    color: #0066cc;
}

.sidebar-link.active {
    color: #0066cc;
    font-weight: 600;
}

.sidebar-link.logout {
    color: #ef4444;
    margin-top: 16px;
}

/* Main Content */
.account-content {
    padding-top: 20px;
}

.content-header {
    margin-bottom: 32px;
}

.content-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.content-description {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.5;
    max-width: 600px;
}

/* Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.settings-card {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f8fa 100%);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.settings-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

button.settings-card {
    text-align: left;
    cursor: pointer;
    width: 100%;
}

.card-content {
    flex: 1;
    padding-right: 40px;
}

.card-title {
    font-size: 17px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.card-info {
    font-size: 14px;
    color: #86868b;
    line-height: 1.6;
}

.card-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Account Responsive */
@media (max-width: 900px) {
    .account-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .account-sidebar-simple {
        padding-top: 0;
        border-bottom: 1px solid #e5e5e5;
        padding-bottom: 24px;
    }

    .sidebar-profile {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-bottom: 20px;
    }

    .sidebar-avatar {
        margin-bottom: 0;
        width: 56px;
        height: 56px;
    }

    .sidebar-avatar svg {
        width: 56px;
        height: 56px;
    }

    .sidebar-name {
        font-size: 18px;
    }

    .sidebar-nav {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0;
    }

    .sidebar-link {
        padding: 8px 16px 8px 0;
        font-size: 15px;
    }

    .sidebar-link.logout {
        margin-top: 0;
    }
}

@media (max-width: 640px) {
    .account-page {
        padding: 24px 16px;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .settings-card {
        padding: 20px;
    }

    .content-header h1 {
        font-size: 26px;
    }

    .sidebar-nav {
        flex-direction: column;
        gap: 0;
    }

    .sidebar-link {
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .sidebar-link:last-child {
        border-bottom: none;
    }
}

@media (max-width: 400px) {
    .account-page {
        padding: 16px 12px;
    }

    .settings-card {
        padding: 16px;
    }

    .card-title {
        font-size: 15px;
    }

    .card-info {
        font-size: 13px;
    }

    .card-icon {
        top: 16px;
        right: 16px;
    }
}

/* ========================================
   Apple-style Modal
   ======================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.apple-modal-box {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .apple-modal-box {
    transform: scale(1) translateY(0);
}

.apple-modal-box .modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f7;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6e6e73;
    transition: background 0.2s, color 0.2s;
    z-index: 1;
}

.apple-modal-box .modal-close:hover {
    background: #e8e8ed;
    color: #1d1d1f;
}

.apple-modal-box .modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 40px 32px;
}

.apple-modal-box .modal-icon {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apple-modal-box .modal-title {
    font-size: 26px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.apple-modal-box .modal-subtitle {
    font-size: 15px;
    color: #6e6e73;
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.apple-modal-box .modal-description {
    font-size: 14px;
    color: #86868b;
    line-height: 1.6;
    max-width: 380px;
    margin: 0;
}

/* Modal Sections */
.modal-section {
    padding: 16px 40px 24px;
}

.modal-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e5e7;
    margin-bottom: 20px;
}

.modal-section-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0;
}

.modal-add-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    color: #0066cc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s;
}

.modal-add-btn:hover {
    background: #f0f7ff;
}

.modal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.modal-item-icon {
    flex-shrink: 0;
}

.modal-item-content {
    flex: 1;
    min-width: 0;
}

.modal-item-value {
    font-size: 15px;
    color: #1d1d1f;
}

.modal-item-badge {
    font-size: 12px;
    color: #86868b;
    white-space: nowrap;
}

.modal-item-note {
    font-size: 12px;
    color: #86868b;
    white-space: nowrap;
}

.modal-remove-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    color: #86868b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
}

.modal-remove-btn:hover {
    color: #dc2626;
    background: #fef2f2;
}

/* Modal Form */
.modal-form {
    padding: 16px 40px 40px;
}

.modal-input-group {
    margin-bottom: 20px;
}

.modal-input-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.modal-input-wrapper {
    position: relative;
}

.modal-input-wrapper input {
    width: 100%;
    padding: 14px 48px 14px 16px;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    font-size: 15px;
    color: #1d1d1f;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.modal-input-wrapper input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.modal-input-wrapper input::placeholder {
    color: #86868b;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: #86868b;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: #1d1d1f;
}

.modal-input-wrapper select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    font-size: 15px;
    color: #1d1d1f;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.modal-input-wrapper select:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.modal-btn-primary {
    flex: 1;
    padding: 14px 24px;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-btn-primary:hover {
    background: #0055b3;
}

.modal-btn-secondary {
    flex: 1;
    padding: 14px 24px;
    background: #f5f5f7;
    color: #1d1d1f;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-btn-secondary:hover {
    background: #e8e8ed;
}

/* Address Card in Modal */
.address-card {
    background: #f5f5f7;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
}

.address-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.address-label {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
}

.address-badge-default {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 8px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 6px;
}

.address-details {
    margin-bottom: 16px;
}

.address-details p {
    margin: 0;
    line-height: 1.5;
}

.address-name {
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 4px !important;
}

.address-line {
    font-size: 14px;
    color: #6e6e73;
}

.address-phone {
    font-size: 14px;
    color: #6e6e73;
    margin-top: 8px !important;
}

.address-actions {
    display: flex;
    gap: 12px;
}

.address-edit-btn {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #d2d2d7;
    color: #1d1d1f;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.address-edit-btn:hover {
    background: #f5f5f7;
    border-color: #1d1d1f;
}

.address-delete-btn {
    padding: 8px 16px;
    background: none;
    border: 1px solid #dc2626;
    color: #dc2626;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.address-delete-btn:hover {
    background: #dc2626;
    color: #fff;
}

/* Add Address Section */
.modal-add-address-section {
    padding: 0 40px 40px;
}

.modal-add-address-btn {
    width: 100%;
    padding: 16px;
    background: #f5f5f7;
    border: 2px dashed #d2d2d7;
    border-radius: 12px;
    color: #0066cc;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.modal-add-address-btn:hover {
    background: #e8f4ff;
    border-color: #0066cc;
}

/* Modal responsive */
@media (max-width: 640px) {
    .apple-modal-box {
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .apple-modal-box .modal-header {
        padding: 60px 24px 20px;
    }

    .modal-section {
        padding: 0 24px 20px;
    }

    .modal-form {
        padding: 0 24px 24px;
    }

    .modal-item {
        flex-wrap: wrap;
    }

    .modal-item-badge,
    .modal-item-note {
        width: 100%;
        margin-left: 32px;
        margin-top: -4px;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-add-address-section {
        padding: 0 24px 24px;
    }
}

/* Empty States */
.orders-empty,
.coupons-empty {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f8fa 100%);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.empty-icon {
    margin-bottom: 20px;
}

.empty-title {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.empty-text {
    font-size: 15px;
    color: #86868b;
    max-width: 320px;
    margin: 0 auto 24px;
    line-height: 1.5;
}

/* Coupon Input */
.coupon-add-section {
    margin-bottom: 24px;
}

.coupon-input-wrapper {
    display: flex;
    gap: 12px;
    max-width: 500px;
}

.coupon-input {
    flex: 1;
    padding: 14px 16px;
    font-size: 16px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    background: white;
    color: #1d1d1f;
}

.coupon-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.coupon-btn {
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 500;
    color: white;
    background: #1d1d1f;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

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

@media (max-width: 480px) {
    .coupon-input-wrapper {
        flex-direction: column;
    }

    .coupon-btn {
        width: 100%;
    }
}

/* ========================================
   Apple Style Auth Pages (Login/Register)
   ======================================== */

.auth-page {
    background: #f5f5f7;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.auth-wrapper {
    width: 100%;
    max-width: 460px;
    text-align: center;
}

.auth-title {
    font-size: 32px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.auth-description {
    font-size: 15px;
    color: #6e6e73;
    line-height: 1.5;
    margin-bottom: 32px;
}

.auth-description a {
    color: #0066cc;
    text-decoration: none;
}

.auth-description a:hover {
    text-decoration: underline;
}

.auth-form-apple {
    text-align: left;
}

.apple-input-group {
    margin-bottom: 20px;
}

.apple-label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 8px;
}

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

.apple-input-row .apple-input-group {
    margin-bottom: 16px;
}

.apple-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 17px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    background: white;
    color: #1d1d1f;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.apple-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.apple-input::placeholder {
    color: #86868b;
}

/* Select wrapper with floating label */
.apple-select-wrapper {
    position: relative;
}

.apple-float-label {
    position: absolute;
    top: -8px;
    left: 12px;
    background: white;
    padding: 0 4px;
    font-size: 12px;
    color: #6e6e73;
    z-index: 1;
}

.apple-select {
    width: 100%;
    padding: 14px 40px 14px 16px;
    font-size: 17px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2386868b' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 16px center;
    color: #1d1d1f;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
}

.apple-select:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

/* Date row with 3 selects */
.apple-section-label {
    display: block;
    font-size: 13px;
    color: #6e6e73;
    margin-bottom: 8px;
}

.apple-section-label .info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e8e8ed;
    font-size: 11px;
    color: #6e6e73;
    cursor: help;
    margin-left: 4px;
    vertical-align: middle;
}

.apple-date-row {
    display: grid;
    grid-template-columns: 80px 1fr 100px;
    gap: 12px;
}

.apple-select-small {
    width: 100%;
    padding: 14px 32px 14px 12px;
    font-size: 17px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2386868b' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 10px center;
    color: #1d1d1f;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
}

.apple-select-small:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

/* Form divider */
.form-divider {
    height: 1px;
    background: #d2d2d7;
    margin: 24px 0;
}

/* Apple checkbox */
.apple-checkbox-group {
    margin-bottom: 12px;
}

.apple-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #1d1d1f;
    line-height: 1.4;
}

.apple-checkbox input[type="checkbox"] {
    display: none;
}

.apple-checkbox .checkmark {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 1px solid #d2d2d7;
    border-radius: 6px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-top: 1px;
}

.apple-checkbox input[type="checkbox"]:checked + .checkmark {
    background: #0066cc;
    border-color: #0066cc;
}

.apple-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.apple-checkbox a {
    color: #0066cc;
    text-decoration: none;
}

.apple-checkbox a:hover {
    text-decoration: underline;
}

/* Primary button */
.apple-btn-primary {
    width: 100%;
    padding: 14px 24px;
    font-size: 17px;
    font-weight: 500;
    color: white;
    background: #1d1d1f;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 24px;
}

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

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

/* Auth separator */
.auth-separator {
    display: flex;
    align-items: center;
    margin: 32px 0;
}

.auth-separator::before,
.auth-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #d2d2d7;
}

.auth-separator span {
    padding: 0 16px;
    font-size: 13px;
    color: #6e6e73;
}

/* Social auth buttons */
.social-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.apple-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #1d1d1f;
    background: white;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    text-decoration: none;
}

.apple-social-btn:hover {
    background: #f5f5f7;
    border-color: #c6c6c8;
    text-decoration: none;
}

/* Auth options (remember me, forgot password) */
.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #1d1d1f;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #0066cc;
}

.forgot-link {
    font-size: 14px;
    color: #0066cc;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Auth Icon */
.auth-icon {
    margin-bottom: 24px;
}

/* Auth Back Link */
.auth-back-link {
    margin-top: 32px;
}

.auth-back-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: #0066cc;
    text-decoration: none;
    transition: opacity 0.2s;
}

.auth-back-link a:hover {
    opacity: 0.8;
}

.auth-back-link svg {
    transition: transform 0.2s;
}

.auth-back-link a:hover svg {
    transform: translateX(-3px);
}

/* Responsive */
@media (max-width: 520px) {
    .auth-wrapper {
        max-width: 100%;
    }

    .auth-title {
        font-size: 26px;
    }

    .apple-input-row {
        grid-template-columns: 1fr;
    }

    .apple-date-row {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .social-auth {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Breadcrumbs
   ======================================== */

.breadcrumbs {
    background: #f5f5f7;
    padding: 16px 0;
}

.breadcrumbs-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 22px;
    font-size: 14px;
    color: #6e6e73;
}

.breadcrumbs a {
    color: #0066cc;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #86868b;
}

.breadcrumb-current {
    color: #1d1d1f;
}

/* ========================================
   Orders List
   ======================================== */

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8fa 100%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e5e7;
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-number {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
}

.order-date {
    font-size: 14px;
    color: #6e6e73;
}

.order-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.status-delivered {
    background: #dcfce7;
    color: #16a34a;
}

.status-transit {
    background: #dbeafe;
    color: #2563eb;
}

.status-processing {
    background: #fef3c7;
    color: #d97706;
}

.status-cancelled {
    background: #fee2e2;
    color: #dc2626;
}

.order-products {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.order-product {
    display: flex;
    align-items: center;
    gap: 16px;
}

.order-product .product-image,
.orders-list .order-product .product-image {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 80px;
    height: 80px;
    max-width: 80px;
    max-height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f7;
    flex-shrink: 0;
    display: block;
}

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

.order-product .product-details {
    flex: 1;
    min-width: 0;
}

.order-product .product-name {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 4px;
}

.order-product .product-variant {
    font-size: 13px;
    color: #6e6e73;
    margin-bottom: 2px;
}

.order-product .product-qty {
    font-size: 13px;
    color: #86868b;
}

.order-product .product-price {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    white-space: nowrap;
}

.order-tracking {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #eff6ff;
    border-radius: 10px;
    margin-bottom: 20px;
}

.tracking-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #1d1d1f;
}

.tracking-link {
    font-size: 14px;
    font-weight: 500;
    color: #2563eb;
}

.tracking-link:hover {
    text-decoration: underline;
}

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

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: #e5e5e7;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.progress-step .step-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e5e5e7;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #e5e5e7;
}

.progress-step.completed .step-dot {
    background: #22c55e;
    box-shadow: 0 0 0 2px #22c55e;
}

.progress-step.active .step-dot {
    background: #3b82f6;
    box-shadow: 0 0 0 2px #3b82f6;
}

.progress-step span {
    font-size: 12px;
    color: #86868b;
    text-align: center;
    max-width: 80px;
}

.progress-step.completed span,
.progress-step.active span {
    color: #1d1d1f;
    font-weight: 500;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #e5e5e7;
}

.order-total {
    font-size: 15px;
    color: #6e6e73;
}

.order-total strong {
    font-size: 18px;
    color: #1d1d1f;
    margin-left: 8px;
}

.order-actions {
    display: flex;
    gap: 12px;
}

.btn-order-primary {
    padding: 10px 20px;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-order-primary:hover {
    background: #0055b3;
    color: #fff;
}

.btn-order-secondary {
    padding: 10px 20px;
    background: #f5f5f7;
    color: #1d1d1f;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-order-secondary:hover {
    background: #e8e8ed;
    color: #1d1d1f;
}

.btn-order-danger {
    padding: 10px 20px;
    background: #fff;
    color: #dc2626;
    border: 1px solid #dc2626;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-order-danger:hover {
    background: #dc2626;
    color: #fff;
}

/* ========================================
   Coupons
   ======================================== */

.coupons-section {
    margin-bottom: 32px;
}

.coupons-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 16px;
}

.coupons-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.coupon-card {
    display: flex;
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f8fa 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.coupon-card::before {
    content: '';
    position: absolute;
    left: 110px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: repeating-linear-gradient(
        to bottom,
        #e5e5e7 0,
        #e5e5e7 8px,
        transparent 8px,
        transparent 16px
    );
}

.coupon-left {
    width: 110px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: #fff;
}

.coupon-left.coupon-shipping {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.coupon-discount {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.coupon-type {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 4px;
}

.coupon-right {
    flex: 1;
    padding: 20px 24px;
}

.coupon-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 4px;
}

.coupon-description {
    font-size: 13px;
    color: #6e6e73;
    margin-bottom: 12px;
}

.coupon-code-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.coupon-code {
    display: inline-block;
    padding: 8px 16px;
    background: #f5f5f7;
    border: 1px dashed #d2d2d7;
    border-radius: 6px;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: 1px;
}

.coupon-copy {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: none;
    border: 1px solid #d2d2d7;
    border-radius: 6px;
    font-size: 12px;
    color: #0066cc;
    cursor: pointer;
    transition: all 0.2s;
}

.coupon-copy:hover {
    background: #0066cc;
    border-color: #0066cc;
    color: #fff;
}

.coupon-copy:hover svg {
    stroke: #fff;
}

.coupon-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    color: #6e6e73;
}

.coupon-validity,
.coupon-min,
.coupon-used-info,
.coupon-expired-info {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.coupon-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-active {
    background: #dcfce7;
    color: #16a34a;
}

.badge-used {
    background: #e0e7ff;
    color: #4f46e5;
}

.badge-expired {
    background: #fee2e2;
    color: #dc2626;
}

/* Coupon states */
.coupon-used {
    opacity: 0.7;
}

.coupon-used .coupon-left {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.coupon-expired {
    opacity: 0.6;
}

.coupon-expired .coupon-left {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
}

/* Responsive Orders & Coupons */
@media (max-width: 768px) {
    .order-header {
        flex-direction: column;
        gap: 12px;
    }

    .order-product {
        flex-wrap: wrap;
    }

    .order-product .product-image {
        width: 60px;
        height: 60px;
    }

    .order-footer {
        flex-direction: column;
        gap: 16px;
    }

    .order-actions {
        width: 100%;
        flex-direction: column;
    }

    .order-actions a {
        text-align: center;
    }

    .progress-steps {
        flex-wrap: wrap;
        gap: 8px;
    }

    .progress-steps::before {
        display: none;
    }

    .progress-step {
        flex-direction: row;
        width: 100%;
        justify-content: flex-start;
    }

    .progress-step span {
        max-width: none;
    }

    .coupon-card {
        flex-direction: column;
    }

    .coupon-card::before {
        left: 0;
        right: 0;
        top: 100px;
        width: auto;
        height: 1px;
        background: repeating-linear-gradient(
            to right,
            #e5e5e7 0,
            #e5e5e7 8px,
            transparent 8px,
            transparent 16px
        );
    }

    .coupon-left {
        width: 100%;
        flex-direction: row;
        gap: 8px;
        padding: 16px;
    }

    .coupon-discount {
        font-size: 24px;
    }

    .coupon-right {
        padding: 16px;
    }

    .coupon-code-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .coupon-meta {
        flex-direction: column;
        gap: 8px;
    }
}

/* Additional Modal IDs for account.php */
.modal-overlay#profileModal,
.modal-overlay#contactModal,
.modal-overlay#addressModal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    padding: 20px;
}

.modal-overlay#profileModal.active,
.modal-overlay#contactModal.active,
.modal-overlay#addressModal.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Form Select */
.modal-input-wrapper select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    font-size: 15px;
    color: #1d1d1f;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.modal-input-wrapper select:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

/* Settings card as button */
button.settings-card {
    text-align: left;
    cursor: pointer;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

button.settings-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ========================================
   Order Detail Modals
   ======================================== */

/* Order Modal Overlays */
.modal-overlay#orderModal1,
.modal-overlay#orderModal2,
.modal-overlay#orderModal3 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    padding: 20px;
}

.modal-overlay#orderModal1.active,
.modal-overlay#orderModal2.active,
.modal-overlay#orderModal3.active {
    opacity: 1;
    visibility: visible;
}

/* Large Modal Variant */
.apple-modal-box.modal-large {
    max-width: 640px;
}

/* Order Status Badge */
.order-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-top: 12px;
}

.order-status-badge.status-delivered {
    background: #dcfce7;
    color: #16a34a;
}

.order-status-badge.status-transit {
    background: #dbeafe;
    color: #2563eb;
}

.order-status-badge.status-processing {
    background: #fef3c7;
    color: #d97706;
}

/* Connected Accounts */
.modal-accounts-list {
    padding: 16px 40px 40px;
}

.modal-account-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f5f5f7;
    border-radius: 12px;
    margin-bottom: 12px;
}

.modal-account-item:last-child {
    margin-bottom: 0;
}

.account-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    flex-shrink: 0;
}

.account-info {
    flex: 1;
    min-width: 0;
}

.account-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 2px;
}

.account-email {
    font-size: 13px;
    color: #6e6e73;
}

.account-status-text {
    font-size: 13px;
    color: #86868b;
}

.account-status {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.status-badge {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 12px;
}

.status-badge.connected {
    background: #dcfce7;
    color: #16a34a;
}

.account-disconnect {
    padding: 8px 16px;
    background: none;
    border: 1px solid #dc2626;
    color: #dc2626;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.account-disconnect:hover {
    background: #dc2626;
    color: #fff;
}

.account-connect {
    padding: 8px 16px;
    background: #0066cc;
    border: none;
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.account-connect:hover {
    background: #0055b3;
}

/* Account page connected accounts responsive */
@media (max-width: 640px) {
    .modal-accounts-list {
        padding: 0 24px 24px;
    }

    .account-status {
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }
}

/* Account Content - transparent background */
.account-content {
    padding-top: 20px;
    background: transparent;
}

/* Order Detail Product */
.order-detail-product {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f5f5f7;
    border-radius: 12px;
    margin-bottom: 12px;
}

.order-detail-product:last-child {
    margin-bottom: 0;
}

.detail-product-image {
    width: 72px;
    height: 72px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.detail-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.detail-product-info {
    flex: 1;
    min-width: 0;
}

.detail-product-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 6px 0;
}

.detail-product-info p {
    font-size: 13px;
    color: #6e6e73;
    margin: 0;
    line-height: 1.5;
}

.detail-product-price {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    flex-shrink: 0;
}

/* Order Detail Address */
.order-detail-address {
    background: #f5f5f7;
    border-radius: 12px;
    padding: 16px;
}

.order-detail-address p {
    margin: 0;
    font-size: 14px;
    color: #6e6e73;
    line-height: 1.6;
}

.order-detail-address p strong {
    color: #1d1d1f;
    font-weight: 600;
}

/* Order Detail Summary */
.order-detail-summary {
    background: #f5f5f7;
    border-radius: 12px;
    padding: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: #6e6e73;
}

.summary-row:first-child {
    padding-top: 0;
}

.summary-row.total {
    border-top: 1px solid #e5e5e7;
    margin-top: 8px;
    padding-top: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
}

.summary-row .free-shipping {
    color: #16a34a;
    font-weight: 500;
}

/* Modal Order Actions */
.modal-order-actions {
    display: flex;
    gap: 12px;
    padding: 24px 40px 40px;
    justify-content: center;
}

.modal-btn-secondary {
    padding: 12px 24px;
    background: #fff;
    border: 1px solid #d2d2d7;
    color: #1d1d1f;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn-secondary:hover {
    background: #f5f5f7;
    border-color: #1d1d1f;
}

.modal-btn-danger {
    padding: 12px 24px;
    background: #fff;
    border: 1px solid #dc2626;
    color: #dc2626;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn-danger:hover {
    background: #dc2626;
    color: #fff;
}

/* Tracking Timeline (Vertical) */
.order-tracking-detail {
    background: #f5f5f7;
    border-radius: 12px;
    padding: 20px;
}

.tracking-timeline {
    position: relative;
}

.tracking-timeline .tracking-step {
    display: flex;
    gap: 16px;
    padding-bottom: 24px;
    position: relative;
}

.tracking-timeline .tracking-step:last-child {
    padding-bottom: 0;
}

.tracking-timeline .tracking-step::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 20px;
    bottom: 0;
    width: 2px;
    background: #d2d2d7;
}

.tracking-timeline .tracking-step:last-child::before {
    display: none;
}

.tracking-timeline .tracking-step.completed::before {
    background: #16a34a;
}

.tracking-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #d2d2d7;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.tracking-timeline .tracking-step.completed .tracking-dot {
    background: #16a34a;
}

.tracking-timeline .tracking-step.active .tracking-dot {
    background: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.tracking-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tracking-time {
    font-size: 12px;
    color: #86868b;
}

.tracking-text {
    font-size: 14px;
    color: #1d1d1f;
    font-weight: 500;
}

.tracking-timeline .tracking-step:not(.completed):not(.active) .tracking-text {
    color: #86868b;
}

/* Progress Steps (Horizontal) */
.order-progress-detail {
    background: #f5f5f7;
    border-radius: 12px;
    padding: 24px;
}

.progress-steps-horizontal {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.progress-step-h {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.progress-step-h .step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #d2d2d7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.progress-step-h.completed .step-circle {
    background: #16a34a;
}

.progress-step-h.active .step-circle {
    background: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
}

.progress-step-h span {
    font-size: 12px;
    color: #86868b;
    text-align: center;
    max-width: 70px;
}

.progress-step-h.completed span,
.progress-step-h.active span {
    color: #1d1d1f;
    font-weight: 500;
}

.progress-line {
    width: 40px;
    height: 2px;
    background: #d2d2d7;
    margin-top: 16px;
}

.progress-line.completed {
    background: #16a34a;
}

/* Responsive for Order Modals */
@media (max-width: 640px) {
    .apple-modal-box.modal-large {
        max-width: 100%;
    }

    .order-detail-product {
        flex-direction: column;
        text-align: center;
    }

    .detail-product-price {
        margin-top: 8px;
    }

    .modal-order-actions {
        flex-direction: column;
        padding: 20px 24px 24px;
    }

    .progress-steps-horizontal {
        flex-wrap: wrap;
        gap: 8px;
    }

    .progress-line {
        width: 20px;
    }
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

nav.breadcrumbs {
    background: var(--bg-light);
    padding: 12px 0;
}

nav.breadcrumbs .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: transparent;
    font-size: 14px;
}

nav.breadcrumbs .breadcrumb-item {
    color: var(--text-light);
}

nav.breadcrumbs .breadcrumb-item a {
    color: var(--primary);
    text-decoration: underline;
}

nav.breadcrumbs .breadcrumb-item a:hover {
    text-decoration: underline;
}

nav.breadcrumbs .breadcrumb-item.active {
    color: var(--text-gray);
}

nav.breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding-right: 8px;
    color: var(--text-light);
}

/* ==========================================================================
   Cart Page Styles
   ========================================================================== */

.cart-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
}

.cart-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Cart Items */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.cart-item .item-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item .item-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.cart-item .item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item .item-info {
    margin-bottom: 12px;
}

.cart-item .item-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.cart-item .item-stock {
    font-size: 13px;
    color: var(--success);
    margin: 0;
}

.cart-item .item-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Quantity Control */
.quantity-control {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.qty-btn:active {
    background: rgba(0, 0, 0, 0.1);
}

.qty-input {
    width: 40px;
    height: 36px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove Button */
.remove-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.2s;
}

.remove-btn:hover {
    background: #fff5f5;
    color: var(--error);
}

.remove-btn svg {
    width: 18px;
    height: 18px;
}

/* Item Price Section */
.item-price-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    min-width: 100px;
}

.item-price {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
}

.item-original-price {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: line-through;
}

/* Checkout Form */
.checkout-form {
    background: white;
    border-radius: 16px;
    padding: 24px;
}

.form-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 20px 0;
}

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

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    color: var(--text-dark);
    background: white;
    transition: all 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Order Summary */
.order-summary {
    background: white;
    border-radius: 16px;
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.summary-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 20px 0;
}

/* Discount Code Section */
.discount-code-section {
    margin-bottom: 20px;
}

.discount-code-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-gray);
    margin-bottom: 8px;
    display: block;
}

.discount-code-input-group {
    display: flex;
    gap: 8px;
}

.discount-code-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
}

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

.apply-code-btn {
    padding: 10px 16px;
    background: var(--text-dark);
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 400;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.apply-code-btn:hover {
    background: #000;
}

/* Cashback Section */
.cashback-section {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.cashback-available {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.cashback-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.cashback-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    background: white;
}

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

.use-cashback-btn {
    padding: 10px 16px;
    background: var(--text-dark);
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 400;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.use-cashback-btn:hover {
    background: #000;
}

.cashback-max-info {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.cashback-info {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--success);
}

.cashback-info svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Summary Rows */
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.summary-label {
    font-size: 14px;
    color: var(--text-gray);
}

.summary-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.summary-divider {
    height: 1px;
    background: var(--border);
    margin: 16px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* Checkout Button */
.checkout-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 400;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.checkout-btn:hover {
    background: var(--primary-dark);
}

.checkout-btn:active {
    transform: scale(0.98);
}

/* Empty Cart */
.empty-cart {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 16px;
}

.empty-cart-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.empty-cart-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 12px 0;
}

.empty-cart-text {
    font-size: 16px;
    color: var(--text-light);
    margin: 0 0 32px 0;
}

.shop-now-btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s;
}

.shop-now-btn:hover {
    background: var(--primary-dark);
    color: white;
}

/* Cart Page Responsive */
@media (max-width: 991px) {
    .cart-container {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
    }
}

@media (max-width: 767px) {
    .cart-container {
        padding: 16px;
        gap: 16px;
    }

    .cart-item {
        flex-direction: column;
        padding: 16px;
    }

    .cart-item .item-image {
        width: 100%;
        height: 150px;
    }

    .cart-item .item-details {
        width: 100%;
    }

    .cart-item .item-actions {
        justify-content: space-between;
    }

    .item-price-section {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding-top: 16px;
        border-top: 1px solid var(--bg-light);
        margin-top: 16px;
    }

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

    .checkout-form {
        padding: 20px;
    }

    .order-summary {
        padding: 20px;
    }
}

@media (max-width: 350px) {
    .container.py-4 {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .cart-container {
        padding: 0;
        gap: 12px;
    }

    .cart-item {
        padding: 12px;
        flex-direction: column;
    }

    .cart-item .item-image {
        width: 100%;
        height: 150px;
        margin-bottom: 12px;
    }

    .cart-item .item-details {
        width: 100%;
    }

    .cart-item .item-info {
        text-align: center;
    }

    .item-name {
        font-size: 14px;
    }

    .cart-item .item-actions {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .item-price-section {
        width: 100%;
        justify-content: center !important;
        text-align: center;
        gap: 8px;
    }

    .item-price {
        font-size: 18px;
    }

    .item-original-price {
        font-size: 13px;
    }

    .order-summary {
        padding: 12px;
    }

    .checkout-form {
        padding: 12px;
    }

    .order-summary h2 {
        font-size: 18px;
    }

    .discount-section label,
    .cashback-section label {
        font-size: 13px;
    }

    .apply-code-btn,
    .use-cashback-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

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

/* ========================================
   Mobile Search Panel Styles
======================================== */
.mobile-search-panel {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 10001;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-search-panel.active {
    display: flex !important;
    transform: translateY(0);
}

.mobile-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
}

.mobile-search-overlay.active {
    display: block;
}

.mobile-search-input {
    border-radius: 20px;
    padding: 10px 20px;
    border: 1px solid #e0e0e0;
}

.mobile-search-close {
    white-space: nowrap;
    font-size: 14px;
}

/* Mobile Search Dropdown */
.mobile-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 10002;
    display: none;
}

.mobile-search-dropdown.active {
    display: block;
}

/* Mobile Menu Panel */
.mobile-menu-panel .nav-link {
    padding: 12px 0;
    font-size: 16px;
    color: #1d1d1f;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-panel .nav-link:hover {
    color: #0071e3;
}

/* Search Dropdown - hide by default */
.search-dropdown {
    display: none !important;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    margin-top: 8px;
    padding: 4px 0;
    z-index: 1000;
}

.search-dropdown.active {
    display: block !important;
}

.search-dropdown-title {
    font-size: 12px;
    font-weight: 600;
    color: #86868b;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* Hide search dropdown section when not active */
.search-dropdown-section {
    display: none;
}

.search-dropdown.active .search-dropdown-section {
    display: block;
}

/* ==================== Fullscreen Search Modal ==================== */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 99999;
    display: none;
    flex-direction: column;
}

.search-modal.active {
    display: flex;
}

body.search-modal-open {
    overflow: hidden;
}

.search-modal-header {
    padding: 12px 16px;
    border-bottom: 1px solid #d2d2d7;
    background: #f5f5f7;
    flex-shrink: 0;
}

.search-modal-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    padding: 0;
}

.search-modal-icon {
    color: #86868b;
    flex-shrink: 0;
}

.search-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #8e8e93;
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
}

.search-modal-close:hover {
    background: #636366;
}

.search-modal-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 17px;
    font-weight: 400;
    padding: 4px 0;
    outline: none;
    color: #1d1d1f;
}

.search-modal-input::placeholder {
    color: #86868b;
    font-weight: 400;
}

.search-modal-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.search-modal-results {
    padding: 8px 0;
}

.search-modal-empty {
    text-align: center;
    padding: 40px 20px;
    color: #86868b;
}

.search-modal-loading {
    text-align: center;
    padding: 40px 20px;
    color: #86868b;
}

/* Search Result Item in Modal */
.search-result-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    text-decoration: none;
    color: #1d1d1f;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.search-result-item:hover {
    background: #f5f5f7;
    color: #1d1d1f;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-image {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: #f5f5f7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-price {
    font-size: 14px;
    font-weight: 600;
    color: #0071e3;
}

.search-result-old-price {
    font-size: 11px;
    color: #86868b;
    text-decoration: line-through;
    margin-right: 8px;
}

/* View All Results Link */
.search-modal-view-all {
    display: block;
    text-align: center;
    padding: 16px;
    color: #0071e3;
    font-weight: 500;
    text-decoration: none;
    border-top: 1px solid #e5e5e5;
}

.search-modal-view-all:hover {
    background: #f5f5f7;
    color: #0077ed;
}

/* Desktop: Search modal - compact width */
@media (min-width: 992px) {
    .search-modal {
        position: fixed;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 680px;
        height: 50vh !important;
        background: #fff;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        padding: 0 20px;
    }

    .search-modal-header {
        background: #fff;
        padding: 16px 0;
        border-bottom: 1px solid #e5e5e5;
    }

    .search-modal-body {
        background: #fff;
        height: calc(50vh - 70px);
        max-height: none;
        overflow-y: auto;
    }

    .search-modal-input {
        font-size: 17px;
    }

    body.search-modal-open {
        overflow: auto;
    }
}
