/* ============================================================
   OCEA SHOP - Main Stylesheet
   Premium teal-themed e-commerce design
   ============================================================ */

/* ------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES
   ------------------------------------------------------------ */
:root {
    /* Brand Colors */
    --primary: #0B5E63;
    --primary-dark: #084347;
    --primary-light: #1A8A8F;
    --secondary: #0C2D48;
    --secondary-dark: #071E33;
    --secondary-light: #15446E;
    --accent: #D4A843;
    --accent-dark: #B8912F;
    --accent-light: #E4C36A;
    --eco: #2D8B6F;
    --eco-light: #3DA882;

    /* Neutrals */
    --white: #FFFFFF;
    --off-white: #F7FBFB;
    --cool-gray: #F0F5F5;
    --gray-100: #E8EDED;
    --gray-200: #D1DADA;
    --gray-300: #A8B8B8;
    --gray-400: #7F9494;
    --gray-500: #5A6E6E;
    --gray-600: #425252;
    --gray-700: #2E3B3B;
    --gray-800: #1C2626;

    /* Semantic Colors */
    --success: #2D8B6F;
    --success-light: #E6F5F0;
    --error: #D04848;
    --error-light: #FDF0F0;
    --info: #0B5E63;
    --info-light: #E8F4F5;
    --warning: #D4A843;
    --warning-light: #FDF8EC;

    /* Typography */
    --font-display: 'Playfair Display', 'Georgia', serif;
    --font-body: 'Poppins', 'Helvetica Neue', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-md: 1.125rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 2.5rem;
    --font-size-4xl: 3rem;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Layout */
    --container-max: 1280px;
    --container-narrow: 800px;
    --sidebar-width: 280px;
    --header-height: 80px;
    --header-height-scrolled: 64px;

    /* Borders & Radii */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-pill: 50px;
    --radius-circle: 50%;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(11, 94, 99, 0.06), 0 1px 2px rgba(11, 94, 99, 0.04);
    --shadow-md: 0 4px 6px rgba(11, 94, 99, 0.06), 0 2px 4px rgba(11, 94, 99, 0.04);
    --shadow-lg: 0 10px 25px rgba(11, 94, 99, 0.08), 0 4px 10px rgba(11, 94, 99, 0.04);
    --shadow-xl: 0 20px 40px rgba(11, 94, 99, 0.1), 0 8px 16px rgba(11, 94, 99, 0.05);
    --shadow-card: 0 2px 8px rgba(11, 94, 99, 0.06);
    --shadow-card-hover: 0 8px 24px rgba(11, 94, 99, 0.12);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* ------------------------------------------------------------
   2. BASE / RESET
   ------------------------------------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: 400;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-normal);
}

a:hover {
    color: var(--primary-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-800);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-md); }

p {
    margin-bottom: var(--space-md);
}

p:last-child {
    margin-bottom: 0;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: var(--font-body);
    border: none;
    background: none;
    font-size: inherit;
}

input, select, textarea {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
}

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

::selection {
    background-color: var(--primary);
    color: var(--white);
}


/* ------------------------------------------------------------
   3. CONTAINER
   ------------------------------------------------------------ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
}

.container-narrow {
    width: 100%;
    max-width: var(--container-narrow);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
}


/* ------------------------------------------------------------
   4. SKIP LINK (Accessibility)
   ------------------------------------------------------------ */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    z-index: 10000;
    background: var(--primary);
    color: var(--white);
    padding: var(--space-sm) var(--space-lg);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    font-weight: 600;
    font-size: var(--font-size-sm);
    transition: top var(--transition-normal);
}

.skip-link:focus {
    top: 0;
    color: var(--white);
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}


/* ------------------------------------------------------------
   5. HEADER (Unified with main site)
   ------------------------------------------------------------ */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(11, 94, 99, 0.06);
    transition: all var(--transition-normal);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header .container {
    max-width: 1320px;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 50px;
    width: auto;
    transition: height var(--transition-normal);
}

.header.scrolled .logo img {
    height: 40px;
}

/* Nav Menu (Desktop) */
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-menu a {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--gray-600);
    letter-spacing: 0.02em;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

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

.nav-menu a:hover::after,
.nav-menu a.active::after {
    transform: scaleX(1);
}

.nav-social {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-left: var(--space-md);
    padding-left: var(--space-md);
    border-left: 1px solid var(--gray-200);
}

.nav-social a {
    color: var(--gray-400);
    font-size: 1rem;
}

.nav-social a:hover {
    color: var(--primary);
}

.nav-social a::after {
    display: none;
}

/* Header Actions (Cart, Account, Toggle) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.header-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--gray-600);
    transition: all var(--transition-fast);
}

.header-icon:hover {
    background: rgba(11, 94, 99, 0.06);
    color: var(--primary);
}

.header-icon i {
    font-size: 1.1rem;
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50%;
    padding: 0 4px;
    line-height: 1;
    pointer-events: none;
}

.cart-badge:empty {
    display: none;
}

@keyframes badgePop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.badge-pop {
    animation: badgePop 0.3s ease;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    transition: all var(--transition-normal);
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* ------------------------------------------------------------
   6. NAVIGATION (Legacy selectors - kept for compatibility)
   ------------------------------------------------------------ */

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: var(--space-sm) 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-100);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition-normal);
    z-index: 100;
}

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

.nav-dropdown-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    transition: all var(--transition-fast);
}

.nav-dropdown-link:hover {
    background-color: var(--cool-gray);
    color: var(--primary);
    padding-left: calc(var(--space-lg) + 4px);
}

.nav-dropdown-link i {
    width: 16px;
    font-size: var(--font-size-sm);
    color: var(--gray-400);
}


/* ------------------------------------------------------------
   7. MOBILE NAVIGATION (Unified sliding panel)
   ------------------------------------------------------------ */


/* ------------------------------------------------------------
   8. FLASH MESSAGES / ALERTS
   ------------------------------------------------------------ */
.flash-messages {
    position: fixed;
    top: calc(var(--header-height) + var(--space-md));
    right: var(--space-xl);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-width: 420px;
    width: calc(100% - var(--space-xl) * 2);
}

.flash-message {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    border-left: 4px solid;
    box-shadow: var(--shadow-lg);
    animation: flashSlideIn 0.3s ease-out;
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.flash-message.success {
    background-color: var(--success-light);
    border-color: var(--success);
    color: #1B5E45;
}

.flash-message.error {
    background-color: var(--error-light);
    border-color: var(--error);
    color: #8B2020;
}

.flash-message.info {
    background-color: var(--info-light);
    border-color: var(--info);
    color: var(--primary-dark);
}

.flash-message.warning {
    background-color: var(--warning-light);
    border-color: var(--warning);
    color: #8B6914;
}

.flash-message-icon {
    flex-shrink: 0;
    font-size: var(--font-size-lg);
    margin-top: 1px;
}

.flash-message-content {
    flex: 1;
}

.flash-message-close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-circle);
    color: inherit;
    opacity: 0.5;
    transition: opacity var(--transition-fast);
}

.flash-message-close:hover {
    opacity: 1;
}

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

/* Inline Alerts (within page content) */
.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.alert-success {
    background-color: var(--success-light);
    color: #1B5E45;
    border: 1px solid rgba(45, 139, 111, 0.2);
}

.alert-error {
    background-color: var(--error-light);
    color: #8B2020;
    border: 1px solid rgba(208, 72, 72, 0.2);
}

.alert-info {
    background-color: var(--info-light);
    color: var(--primary-dark);
    border: 1px solid rgba(11, 94, 99, 0.2);
}

.alert-warning {
    background-color: var(--warning-light);
    color: #8B6914;
    border: 1px solid rgba(212, 168, 67, 0.2);
}


/* ------------------------------------------------------------
   9. PAGE HEADER / HERO BANNER
   ------------------------------------------------------------ */
.page-header {
    position: relative;
    padding: var(--space-3xl) 0 var(--space-2xl);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: var(--white);
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: var(--font-size-3xl);
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.page-header p {
    font-size: var(--font-size-md);
    opacity: 0.9;
    max-width: 600px;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-sm);
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.75);
    transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
    color: var(--white);
}

.breadcrumbs .separator {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 2px;
}

.breadcrumbs .current {
    color: var(--white);
    font-weight: 500;
}

/* Light breadcrumbs (for non-gradient pages) */
.breadcrumbs-light {
    padding: var(--space-md) 0;
    font-size: var(--font-size-sm);
}

.breadcrumbs-light a {
    color: var(--gray-400);
}

.breadcrumbs-light a:hover {
    color: var(--primary);
}

.breadcrumbs-light .separator {
    color: var(--gray-300);
}

.breadcrumbs-light .current {
    color: var(--gray-600);
    font-weight: 500;
}


/* ------------------------------------------------------------
   10. SHOP LAYOUT
   ------------------------------------------------------------ */
.shop-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: var(--space-2xl);
    padding: var(--space-2xl) 0;
}

.shop-main {
    min-width: 0;
}

.shop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.shop-header h2 {
    font-size: var(--font-size-2xl);
}

.shop-result-count {
    font-size: var(--font-size-sm);
    color: var(--gray-400);
}

.shop-sort {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--gray-500);
}

.shop-sort select {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--gray-700);
    font-size: var(--font-size-sm);
    cursor: pointer;
}

.shop-sort select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 94, 99, 0.1);
}


/* ------------------------------------------------------------
   11. SHOP SIDEBAR / FILTERS
   ------------------------------------------------------------ */
.shop-sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-xl));
    max-height: calc(100vh - var(--header-height) - var(--space-2xl));
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-200) transparent;
    padding-right: var(--space-sm);
}

.shop-sidebar::-webkit-scrollbar {
    width: 4px;
}

.shop-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.shop-sidebar::-webkit-scrollbar-thumb {
    background: var(--gray-200);
    border-radius: 4px;
}

.filter-group {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--gray-100);
}

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

.filter-group-title {
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.filter-option {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) 0;
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.filter-option:hover {
    color: var(--primary);
}

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

.filter-option .count {
    margin-left: auto;
    font-size: var(--font-size-xs);
    color: var(--gray-400);
    background: var(--cool-gray);
    padding: 1px 8px;
    border-radius: var(--radius-pill);
}

.filter-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.filter-link:hover {
    background-color: var(--cool-gray);
    color: var(--primary);
}

.filter-link.active {
    background-color: var(--primary);
    color: var(--white);
    font-weight: 500;
}

.filter-link i {
    width: 18px;
    text-align: center;
    font-size: var(--font-size-sm);
}

.filter-link .count {
    margin-left: auto;
    font-size: var(--font-size-xs);
}

.filter-link.active .count {
    background: rgba(255, 255, 255, 0.2);
    padding: 1px 8px;
    border-radius: var(--radius-pill);
}

/* Active Filters */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: var(--info-light);
    color: var(--primary);
    font-size: var(--font-size-xs);
    font-weight: 500;
    border-radius: var(--radius-pill);
    transition: all var(--transition-fast);
}

.active-filter-tag:hover {
    background: var(--primary);
    color: var(--white);
}

.clear-filters {
    font-size: var(--font-size-xs);
    color: var(--gray-400);
    text-decoration: underline;
    cursor: pointer;
}

.clear-filters:hover {
    color: var(--error);
}

/* Mobile Filter Toggle */
.filter-toggle-btn {
    display: none;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-toggle-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}


/* ------------------------------------------------------------
   12. PRODUCT GRID
   ------------------------------------------------------------ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.product-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.product-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Empty State */
.products-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-4xl) var(--space-xl);
}

.products-empty i {
    font-size: 3rem;
    color: var(--gray-300);
    margin-bottom: var(--space-lg);
}

.products-empty h3 {
    font-size: var(--font-size-xl);
    color: var(--gray-500);
    margin-bottom: var(--space-sm);
}

.products-empty p {
    color: var(--gray-400);
    font-size: var(--font-size-sm);
}


/* ------------------------------------------------------------
   13. PRODUCT CARDS
   ------------------------------------------------------------ */
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-normal);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

/* Product Image */
.product-card-image {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(11, 94, 99, 0.85) 0%, rgba(26, 138, 143, 0.8) 40%, rgba(45, 139, 111, 0.75) 100%);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4%;
    transition: transform var(--transition-slow);
}

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

.product-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Badges */
.product-badges {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    z-index: 2;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

.product-badge.reef-safe {
    background: var(--eco);
    color: var(--white);
}

.product-badge.mineral {
    background: var(--primary-light);
    color: var(--white);
}

.product-badge.vegan {
    background: #5A9E3F;
    color: var(--white);
}

.product-badge.value {
    background: var(--accent);
    color: var(--white);
}

.product-badge.travel-size {
    background: var(--secondary-light);
    color: var(--white);
}

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

.product-badge.sale {
    background: var(--error);
    color: var(--white);
}

.product-badge.wholesale {
    background: var(--secondary);
    color: var(--white);
}

.product-badge.out-of-stock {
    background: var(--gray-500);
    color: var(--white);
}

/* Quick View Overlay */
.product-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 94, 99, 0.3);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 1;
}

.product-card:hover .product-card-overlay {
    opacity: 1;
}

.quick-view-btn {
    padding: var(--space-sm) var(--space-lg);
    background: var(--white);
    color: var(--primary);
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: var(--radius-pill);
    transform: translateY(10px);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.product-card:hover .quick-view-btn {
    transform: translateY(0);
}

.quick-view-btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* Product Card Body */
.product-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: var(--space-lg);
}

.product-card-category {
    font-size: var(--font-size-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-light);
    margin-bottom: var(--space-xs);
}

.product-card-name {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.4;
    margin-bottom: var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-name a {
    color: inherit;
}

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

.product-card-description {
    font-size: var(--font-size-sm);
    color: var(--gray-400);
    line-height: 1.5;
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pricing */
.product-card-pricing {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.product-price {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--primary);
}

.product-price-old {
    font-size: var(--font-size-sm);
    color: var(--gray-400);
    text-decoration: line-through;
}

.product-price-vat {
    font-size: var(--font-size-xs);
    color: var(--gray-400);
}

/* Card Actions */
.product-card-actions {
    display: flex;
    gap: var(--space-sm);
}

.product-card-actions .btn {
    flex: 1;
    font-size: var(--font-size-sm);
    padding: var(--space-sm) var(--space-md);
}


/* ------------------------------------------------------------
   14. PRODUCT DETAIL PAGE (see unified styles at line ~3611)
   ------------------------------------------------------------ */

/* Product Gallery */
.product-gallery {
    position: sticky;
    top: calc(var(--header-height) + var(--space-xl));
}

.product-gallery-main {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(11, 94, 99, 0.85) 0%, rgba(26, 138, 143, 0.8) 40%, rgba(45, 139, 111, 0.75) 100%);
    margin-bottom: var(--space-md);
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6%;
}

.product-gallery-thumbs {
    display: flex;
    gap: var(--space-sm);
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: var(--space-xs);
}

.product-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--gray-200);
    transition: border-color var(--transition-fast);
    background: linear-gradient(135deg, rgba(11, 94, 99, 0.85) 0%, rgba(26, 138, 143, 0.8) 40%, rgba(45, 139, 111, 0.75) 100%);
}

.product-thumb:hover,
.product-thumb.active {
    border-color: var(--primary);
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6%;
}

/* Product Info */
.product-info {
    padding-top: var(--space-sm);
}

.product-info-category {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.product-info h1 {
    font-size: var(--font-size-3xl);
    line-height: 1.15;
    margin-bottom: var(--space-md);
}

.product-info-price {
    display: flex;
    align-items: baseline;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--gray-100);
}

.product-info-price .product-price {
    font-size: var(--font-size-2xl);
}

.product-info-description {
    font-size: var(--font-size-base);
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.product-info-description ul {
    list-style: disc;
    padding-left: var(--space-xl);
    margin-top: var(--space-sm);
}

.product-info-description li {
    margin-bottom: var(--space-xs);
}

/* Size Selector */
.size-selector {
    margin-bottom: var(--space-xl);
}

.size-selector-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-sm);
}

.size-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.size-pill {
    padding: var(--space-sm) var(--space-lg);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-pill);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
    background: var(--white);
}

.size-pill:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.size-pill.active,
.size-pill input:checked + .size-pill-label {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.size-pill.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.quantity-selector-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--gray-700);
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.quantity-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--cool-gray);
    color: var(--gray-600);
    font-size: var(--font-size-md);
    transition: all var(--transition-fast);
}

.quantity-btn:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.quantity-input {
    width: 50px;
    height: 40px;
    text-align: center;
    border: none;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--gray-700);
    background: var(--white);
}

.quantity-input:focus {
    outline: none;
}

/* Product Detail Actions */
.product-detail-actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--gray-100);
}

.product-detail-actions .btn {
    flex: 1;
}

/* Product Meta / Features */
.product-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.product-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--cool-gray);
    border-radius: var(--radius-md);
}

.product-feature i {
    color: var(--primary);
    font-size: var(--font-size-md);
    margin-top: 2px;
}

.product-feature-text {
    font-size: var(--font-size-sm);
}

.product-feature-text strong {
    display: block;
    color: var(--gray-700);
    margin-bottom: 2px;
}

.product-feature-text span {
    color: var(--gray-500);
}

/* Product Tabs */
.product-tabs {
    margin-top: var(--space-3xl);
}

.product-tabs-nav {
    display: flex;
    gap: var(--space-xs);
    border-bottom: 2px solid var(--gray-100);
    margin-bottom: var(--space-xl);
    overflow-x: auto;
}

.product-tab-btn {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--gray-500);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.product-tab-btn:hover {
    color: var(--primary);
}

.product-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.product-tab-panel {
    display: none;
}

.product-tab-panel.active {
    display: block;
}

/* Related Products */
.related-products {
    padding: var(--space-3xl) 0;
    border-top: 1px solid var(--gray-100);
    margin-top: var(--space-3xl);
}

.related-products h2 {
    text-align: center;
    margin-bottom: var(--space-2xl);
}


/* ------------------------------------------------------------
   15. QUOTE REQUEST PAGE
   ------------------------------------------------------------ */
.quote-request-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    padding: var(--space-2xl) 0;
}

.quote-form-section h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-sm);
}

.quote-form-section p {
    color: var(--gray-500);
    margin-bottom: var(--space-xl);
}

.quote-product-preview {
    position: sticky;
    top: calc(var(--header-height) + var(--space-xl));
    padding: var(--space-xl);
    background: var(--cool-gray);
    border-radius: var(--radius-xl);
}

.quote-product-preview img {
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, rgba(11, 94, 99, 0.85) 0%, rgba(26, 138, 143, 0.8) 40%, rgba(45, 139, 111, 0.75) 100%);
    padding: 6%;
}

.quote-product-preview h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-sm);
}


/* Section 16 (Cart) - see dedicated cart styles below */

/* Promo Code */
.promo-code {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--gray-200);
}

.promo-code input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
}

.promo-code button {
    padding: var(--space-sm) var(--space-md);
    background: var(--gray-700);
    color: var(--white);
    font-size: var(--font-size-sm);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.promo-code button:hover {
    background: var(--gray-800);
}


/* Sections 17-18 (Checkout/Confirmation) - see dedicated styles below */


/* ------------------------------------------------------------
   19. AUTH PAGES (Login / Register)
   ------------------------------------------------------------ */
.auth-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - var(--header-height) - 200px);
}

.auth-form-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3xl);
}

.auth-form-container {
    width: 100%;
    max-width: 420px;
}

.auth-form-container h1 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-sm);
}

.auth-form-container .subtitle {
    color: var(--gray-500);
    margin-bottom: var(--space-2xl);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-xl) 0;
    color: var(--gray-400);
    font-size: var(--font-size-sm);
}

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

.auth-footer {
    text-align: center;
    margin-top: var(--space-xl);
    font-size: var(--font-size-sm);
    color: var(--gray-500);
}

.auth-footer a {
    font-weight: 600;
}

/* Auth Benefit Sidebar */
.auth-benefits {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3xl);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--eco) 100%);
    color: var(--white);
}

.auth-benefits-content {
    max-width: 400px;
}

.auth-benefits h2 {
    font-size: var(--font-size-2xl);
    color: var(--white);
    margin-bottom: var(--space-xl);
}

.auth-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.auth-benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    font-size: var(--font-size-md);
}

.auth-benefit-text h4 {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-xs);
}

.auth-benefit-text p {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}


/* ------------------------------------------------------------
   20. ACCOUNT DASHBOARD
   ------------------------------------------------------------ */
.account-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--space-2xl);
    padding: var(--space-2xl) 0;
}

.account-sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-xl));
    height: fit-content;
}

.account-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.account-nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--gray-600);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.account-nav-link:hover {
    background-color: var(--cool-gray);
    color: var(--primary);
}

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

.account-nav-link i {
    width: 20px;
    text-align: center;
    font-size: var(--font-size-sm);
}

.account-nav-link.logout {
    margin-top: var(--space-md);
    color: var(--error);
}

.account-nav-link.logout:hover {
    background-color: var(--error-light);
    color: var(--error);
}

.account-content h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-xl);
}

/* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.dashboard-card {
    padding: var(--space-lg);
    background: var(--cool-gray);
    border-radius: var(--radius-lg);
    text-align: center;
}

.dashboard-card i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.dashboard-card .number {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--gray-800);
    font-family: var(--font-display);
}

.dashboard-card .label {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
}

/* Order History */
.order-table {
    width: 100%;
    border-collapse: collapse;
}

.order-table th {
    padding: var(--space-md) var(--space-lg);
    text-align: left;
    font-family: var(--font-body);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    background: var(--cool-gray);
    border-bottom: 1px solid var(--gray-200);
}

.order-table th:first-child {
    border-radius: var(--radius-md) 0 0 0;
}

.order-table th:last-child {
    border-radius: 0 var(--radius-md) 0 0;
}

.order-table td {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-100);
}

.order-table tr:hover td {
    background-color: var(--off-white);
}

.order-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    border-radius: var(--radius-pill);
}

.order-status.pending {
    background: var(--warning-light);
    color: #8B6914;
}

.order-status.processing {
    background: var(--info-light);
    color: var(--primary);
}

.order-status.shipped {
    background: #E8F0FE;
    color: #1A56DB;
}

.order-status.delivered {
    background: var(--success-light);
    color: #1B5E45;
}

.order-status.cancelled {
    background: var(--error-light);
    color: #8B2020;
}


/* ------------------------------------------------------------
   21. FOOTER
   ------------------------------------------------------------ */
/* Footer - matches main site */
.footer {
    background: #0C2D48;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
}

.footer .wave-divider {
    position: relative;
    margin-bottom: 0;
}

.footer-content {
    padding: 3.5rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
}

.footer-brand p {
    font-size: 0.9rem;
    margin-top: 1rem;
    line-height: 1.7;
}

.footer-brand img {
    height: 44px;
    width: auto;
}

.footer-social {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.footer-social a:hover {
    background: #0B5E63;
    color: #fff;
}

.footer h5 {
    color: #fff;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer ul a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.footer ul a:hover {
    color: #D4A843;
}

.footer-contact p {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: #D4A843;
}

.footer-contact i {
    color: rgba(11, 94, 99, 0.7);
    width: 16px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
    color: #D4A843;
}


/* ------------------------------------------------------------
   22. BUTTONS
   ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Primary Button */
.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Secondary Button (Outline) */
.btn-secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Accent Button (Gold) */
.btn-accent {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: var(--gray-600);
    border-color: var(--gray-200);
}

.btn-ghost:hover {
    background: var(--cool-gray);
    color: var(--primary);
    border-color: var(--gray-300);
}

/* White Button */
.btn-white {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.btn-white:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Danger Button */
.btn-danger {
    background: var(--error);
    color: var(--white);
    border-color: var(--error);
}

.btn-danger:hover {
    background: #B93D3D;
    border-color: #B93D3D;
    color: var(--white);
}

/* Button Sizes */
.btn-sm {
    padding: 8px 18px;
    font-size: var(--font-size-xs);
}

.btn-lg {
    padding: 16px 36px;
    font-size: var(--font-size-base);
}

.btn-xl {
    padding: 18px 44px;
    font-size: var(--font-size-md);
    border-radius: var(--radius-lg);
}

/* Button Variants */
.btn-pill {
    border-radius: var(--radius-pill);
}

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

.btn-icon {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: var(--radius-md);
}

.btn-icon.btn-sm {
    width: 34px;
    height: 34px;
}

.btn-icon.btn-lg {
    width: 50px;
    height: 50px;
}

/* Disabled State */
.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Loading State */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: btnSpin 0.6s linear infinite;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}


/* ------------------------------------------------------------
   23. FORM ELEMENTS
   ------------------------------------------------------------ */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: var(--space-sm);
}

.form-label .required {
    color: var(--error);
}

.form-input,
.form-select,
.form-textarea {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    color: var(--gray-700);
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    appearance: none;
    -webkit-appearance: none;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: var(--gray-300);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 94, 99, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--gray-300);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(208, 72, 72, 0.1);
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237F9494'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-help {
    font-size: var(--font-size-xs);
    color: var(--gray-400);
    margin-top: var(--space-xs);
}

.form-error {
    font-size: var(--font-size-xs);
    color: var(--error);
    margin-top: var(--space-xs);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    cursor: pointer;
    margin-bottom: var(--space-sm);
}

.form-check input {
    accent-color: var(--primary);
    margin-top: 3px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Input Groups */
.input-group {
    display: flex;
}

.input-group .form-input {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.input-group .btn {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    flex-shrink: 0;
}

/* Search Input */
.search-input-wrapper {
    position: relative;
}

.search-input-wrapper .form-input {
    padding-left: 44px;
}

.search-input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: var(--font-size-sm);
    pointer-events: none;
}


/* ------------------------------------------------------------
   24. BADGES
   ------------------------------------------------------------ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

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

.badge-accent {
    background: var(--accent);
    color: var(--white);
}

.badge-eco {
    background: var(--eco);
    color: var(--white);
}

.badge-info {
    background: var(--info-light);
    color: var(--primary);
}

.badge-light {
    background: var(--cool-gray);
    color: var(--gray-600);
}


/* ------------------------------------------------------------
   25. PAGINATION
   ------------------------------------------------------------ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-2xl) 0;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-sm);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.pagination-link:hover {
    background-color: var(--cool-gray);
    border-color: var(--primary-light);
    color: var(--primary);
}

.pagination-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.pagination-link.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-ellipsis {
    padding: 0 var(--space-sm);
    color: var(--gray-400);
}


/* ------------------------------------------------------------
   26. LOADING STATES
   ------------------------------------------------------------ */
.skeleton {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--cool-gray) 37%, var(--gray-100) 63%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.4s ease infinite;
    border-radius: var(--radius-md);
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 14px;
    margin-bottom: var(--space-sm);
}

.skeleton-text:last-child {
    width: 70%;
}

.skeleton-heading {
    height: 24px;
    width: 60%;
    margin-bottom: var(--space-md);
}

.skeleton-image {
    aspect-ratio: 4 / 5;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: btnSpin 0.7s linear infinite;
}

.spinner-lg {
    width: 40px;
    height: 40px;
    border-width: 4px;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
}


/* ------------------------------------------------------------
   27. MODAL
   ------------------------------------------------------------ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(28, 38, 38, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

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

.modal {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95) translateY(10px);
    transition: transform var(--transition-normal);
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--gray-100);
}

.modal-header h3 {
    font-size: var(--font-size-lg);
}

.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-circle);
    color: var(--gray-500);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--cool-gray);
    color: var(--gray-800);
}

.modal-body {
    padding: var(--space-xl);
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-xl);
    border-top: 1px solid var(--gray-100);
}


/* ------------------------------------------------------------
   28. UTILITIES
   ------------------------------------------------------------ */

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Text Colors */
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--gray-400); }
.text-white { color: var(--white); }
.text-error { color: var(--error); }
.text-success { color: var(--success); }

/* Font Weights */
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Display */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-inline-flex { display: inline-flex; }

/* Flex Utilities */
.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* Spacing */
.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }

.mx-auto { margin-left: auto; margin-right: auto; }

.pt-0 { padding-top: 0; }
.pt-md { padding-top: var(--space-md); }
.pt-lg { padding-top: var(--space-lg); }
.pt-xl { padding-top: var(--space-xl); }
.pt-2xl { padding-top: var(--space-2xl); }

.pb-0 { padding-bottom: 0; }
.pb-md { padding-bottom: var(--space-md); }
.pb-lg { padding-bottom: var(--space-lg); }
.pb-xl { padding-bottom: var(--space-xl); }
.pb-2xl { padding-bottom: var(--space-2xl); }

.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }
.p-2xl { padding: var(--space-2xl); }

/* Sizing */
.w-100 { width: 100%; }
.max-w-narrow { max-width: var(--container-narrow); }

/* Borders */
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-pill { border-radius: var(--radius-pill); }
.rounded-circle { border-radius: var(--radius-circle); }

/* Shadows */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-none { box-shadow: none; }

/* Backgrounds */
.bg-white { background-color: var(--white); }
.bg-off-white { background-color: var(--off-white); }
.bg-cool-gray { background-color: var(--cool-gray); }
.bg-primary { background-color: var(--primary); }

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

.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }

/* Section Spacing */
.section {
    padding: var(--space-3xl) 0;
}

.section-lg {
    padding: var(--space-4xl) 0;
}

/* Divider */
.divider {
    height: 1px;
    background: var(--gray-100);
    border: none;
    margin: var(--space-xl) 0;
}

/* Truncate */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ------------------------------------------------------------
   29. RESPONSIVE - 1200px
   ------------------------------------------------------------ */
@media (max-width: 1200px) {
    :root {
        --font-size-4xl: 2.5rem;
        --font-size-3xl: 2rem;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-lg);
    }

    .product-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1.2fr 1fr 1fr 1fr;
        gap: var(--space-xl);
    }
}


/* ------------------------------------------------------------
   30. RESPONSIVE - 1024px (Tablet Landscape)
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
    /* Show Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Mobile sliding nav panel */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 80px var(--space-xl) var(--space-xl);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: right var(--transition-normal);
        gap: 0;
        z-index: 999;
        overflow-y: auto;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-menu a {
        padding: var(--space-md) 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--gray-100);
    }

    .nav-menu a::after {
        display: none;
    }

    .nav-social {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        padding-top: var(--space-md);
    }

    .header-icon {
        width: 36px;
        height: 36px;
    }

    .header-icon i {
        font-size: 1rem;
    }

    /* Mobile overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 998;
    }

    .nav-overlay.active {
        display: block;
    }

    /* Shop Layout */
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
        display: none;
        padding-right: 0;
    }

    .shop-sidebar.open {
        display: block;
        padding: var(--space-lg);
        background: var(--white);
        border: 1px solid var(--gray-100);
        border-radius: var(--radius-lg);
        margin-bottom: var(--space-lg);
    }

    .filter-toggle-btn {
        display: flex;
    }

    /* Product Detail - handled in unified responsive section below */

    /* Cart */
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
    }

    /* Checkout */
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    /* Quote Request */
    .quote-request-layout {
        grid-template-columns: 1fr;
    }

    .quote-product-preview {
        position: static;
    }

    /* Account */
    .account-layout {
        grid-template-columns: 1fr;
    }

    .account-sidebar {
        position: static;
    }

    .account-sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--space-xs);
    }

    /* Auth */
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-benefits {
        display: none;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ------------------------------------------------------------
   31. RESPONSIVE - 768px (Tablet Portrait)
   ------------------------------------------------------------ */
@media (max-width: 768px) {
    :root {
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.75rem;
        --font-size-2xl: 1.5rem;
        --space-3xl: 3rem;
        --space-4xl: 4rem;
    }

    .container,
    .container-narrow {
        padding-left: var(--space-lg);
        padding-right: var(--space-lg);
    }

    /* Header */
    .header-inner {
        padding: 0 var(--space-lg);
    }

    .logo img {
        height: 40px;
    }

    .header.scrolled .logo img {
        height: 34px;
    }

    /* Page Header */
    .page-header {
        padding: var(--space-2xl) 0 var(--space-xl);
    }

    .page-header h1 {
        font-size: var(--font-size-2xl);
    }

    /* Product Grid */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .product-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Product Detail */
    .product-features {
        grid-template-columns: 1fr;
    }

    .product-info h1 {
        font-size: var(--font-size-2xl);
    }

    /* Flash Messages */
    .flash-messages {
        right: var(--space-md);
        left: var(--space-md);
        max-width: none;
        width: auto;
    }

    /* Table Responsive */
    .order-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
    }
}


/* ------------------------------------------------------------
   32. RESPONSIVE - 480px (Mobile)
   ------------------------------------------------------------ */
@media (max-width: 480px) {
    :root {
        --font-size-4xl: 1.75rem;
        --font-size-3xl: 1.5rem;
        --font-size-2xl: 1.25rem;
        --font-size-xl: 1.125rem;
        --header-height: 64px;
    }

    .container,
    .container-narrow {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    .header-inner {
        padding: 0 var(--space-md);
    }

    /* Product Grid - Single Column */
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-grid-2,
    .product-grid-4 {
        grid-template-columns: 1fr;
    }

    /* Product Card */
    .product-card-body {
        padding: var(--space-md);
    }

    /* Size Pills */
    .size-pills {
        gap: var(--space-xs);
    }

    .size-pill {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--font-size-xs);
    }

    /* Product Detail Actions */
    .product-detail-actions {
        flex-direction: column;
    }

    /* Quantity Selector */
    .quantity-selector {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Buttons */
    .btn {
        padding: 10px 22px;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: var(--font-size-sm);
    }

    .btn-xl {
        padding: 14px 32px;
        font-size: var(--font-size-base);
    }

    /* Pagination */
    .pagination {
        gap: 2px;
    }

    .pagination-link {
        min-width: 36px;
        height: 36px;
        font-size: var(--font-size-xs);
    }

    /* Shop Header */
    .shop-header {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Confirmation */
    .confirmation-icon {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }

    /* Auth */
    .auth-form-section {
        padding: var(--space-xl) var(--space-md);
    }

    /* Mobile Nav */
    .mobile-nav {
        width: 100%;
        max-width: 100vw;
    }

    /* Footer */
    .footer-contact p {
        font-size: 0.8rem;
    }
}


/* ------------------------------------------------------------
   33. PRINT STYLES
   ------------------------------------------------------------ */
@media print {
    .header,
    .footer,
    .footer-wave,
    .mobile-nav,
    .mobile-nav-overlay,
    .flash-messages,
    .skip-link,
    .btn,
    .cart-item-remove,
    .quantity-controls,
    .filter-toggle-btn,
    .shop-sidebar,
    .pagination {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .product-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .page-header {
        background: none !important;
        color: #000;
        padding: 1rem 0;
    }

    .page-header h1 {
        color: #000;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .order-summary,
    .confirmation-details,
    .bank-details {
        border: 1px solid #ddd;
        background: #f9f9f9;
    }
}


/* ------------------------------------------------------------
   34. ANIMATIONS
   ------------------------------------------------------------ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

.animate-fade-in-down {
    animation: fadeInDown 0.5s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.3s ease-out;
}

/* Stagger children animation */
.stagger-children > * {
    opacity: 0;
    animation: fadeInUp 0.4s ease-out forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.35s; }
.stagger-children > *:nth-child(9) { animation-delay: 0.4s; }

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   PHP Template Overrides
   ============================================ */

/* --- PRODUCT CARD OVERRIDES (shop-specific: price, actions) --- */
.product-card .product-card-body .product-card-category {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.product-card .product-card-body .product-card-name {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 4px;
    color: var(--gray-800);
}

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

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

.product-card .product-card-desc {
    font-size: 0.82rem;
    color: var(--gray-500);
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .product-price-row {
    margin-bottom: 12px;
}

.product-card .product-price {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--primary);
}

.product-card .product-price.quote {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    font-family: var(--font-body);
}

.product-card .price-note {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-left: 4px;
}

.product-card .product-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* --- BUTTONS --- */
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 16px;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    background: transparent;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-outline:hover { background: var(--primary); color: #fff; }

/* --- SHOP TOOLBAR --- */
.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.product-count { font-size: 0.9rem; color: var(--gray-500); }

.shop-toolbar select {
    padding: 6px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--gray-700);
    background: #fff;
}

/* --- SHOP SIDEBAR --- */
.shop-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) transparent;
}

.shop-sidebar::-webkit-scrollbar { width: 5px; }
.shop-sidebar::-webkit-scrollbar-track { background: transparent; }
.shop-sidebar::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 10px; }

/* Filter sections - white cards */
.filter-section {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.filter-section h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(11, 94, 99, 0.1);
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.88rem;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.filter-list a:hover {
    background: rgba(11, 94, 99, 0.06);
    color: var(--primary);
}

.filter-list a.active {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}

.filter-list a.active i,
.filter-list a.active .count {
    color: #fff;
}

.filter-list a:hover i { color: var(--primary); }

.filter-list i {
    width: 18px;
    text-align: center;
    color: var(--primary-light);
    font-size: 0.85rem;
}

.filter-list .count {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--gray-400);
    background: var(--gray-100);
    padding: 2px 9px;
    border-radius: 100px;
    font-weight: 500;
}

.filter-list a.active .count {
    background: rgba(255,255,255,0.2);
}

/* Also support .filter-group class from original CSS */
.shop-sidebar .filter-group {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.shop-sidebar .filter-group h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(11, 94, 99, 0.1);
}

.shop-sidebar .filter-group ul { list-style: none; padding: 0; margin: 0; }

.shop-sidebar .filter-group a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.88rem;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.shop-sidebar .filter-group a:hover {
    background: rgba(11, 94, 99, 0.06);
    color: var(--primary);
}

.shop-sidebar .filter-group a.active {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}

.shop-sidebar .filter-group a .count {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--gray-400);
    background: var(--gray-100);
    padding: 2px 9px;
    border-radius: 100px;
}

.shop-sidebar .filter-group a.active .count {
    color: #fff;
    background: rgba(255,255,255,0.2);
}

.shop-sidebar .filter-group a i { width: 18px; text-align: center; color: var(--primary-light); }

.no-products { text-align: center; padding: 60px; color: var(--gray-500); }

/* Shop section background for sidebar contrast */
.shop-section {
    background: var(--gray-50, #f7fafa);
    padding: 32px 0 48px;
}

/* --- PRODUCT DETAIL PAGE --- */
.product-detail {
    padding: 48px 0 64px;
    background: #fff;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

/* Gallery */
.product-gallery {
    position: sticky;
    top: 100px;
}

.product-gallery-main {
    position: relative;
    background: linear-gradient(145deg, rgba(11, 94, 99, 0.9) 0%, rgba(35, 120, 100, 0.8) 50%, rgba(45, 139, 111, 0.75) 100%);
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(11, 94, 99, 0.2), 0 2px 8px rgba(0,0,0,0.06);
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6%;
    transition: transform 0.4s ease;
}

.product-gallery-main:hover img {
    transform: scale(1.04);
}

.product-gallery-main .product-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-gallery-main .product-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.product-badge.reef-safe {
    background: rgba(45, 139, 111, 0.9);
    color: #fff;
}

.product-badge.vegan {
    background: rgba(212, 168, 67, 0.9);
    color: #fff;
}

/* Product Info */
.product-info-detail {
    padding-top: 4px;
}

.product-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: linear-gradient(135deg, rgba(11, 94, 99, 0.07), rgba(45, 139, 111, 0.05));
    color: var(--primary);
    border: 1px solid rgba(11, 94, 99, 0.12);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.meta-badge i { font-size: 0.72rem; opacity: 0.8; }

.product-info-detail .product-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary, #0C2D48);
    margin-bottom: 10px;
    line-height: 1.2;
}

.product-info-detail .product-short-desc {
    font-size: 1rem;
    color: var(--gray-500);
    margin-bottom: 28px;
    line-height: 1.6;
}

/* Size selector */
.size-selector {
    margin-bottom: 28px;
    padding: 20px 24px;
    background: var(--gray-50, #f8fafa);
    border-radius: 14px;
}

.size-selector label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray-700);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.size-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.size-pill {
    padding: 10px 24px;
    border: 2px solid var(--gray-200);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.25s;
    background: #fff;
}

.size-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(11, 94, 99, 0.12);
}

.size-pill.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 3px 12px rgba(11, 94, 99, 0.25);
}

/* Price box */
.product-price-box {
    background: linear-gradient(135deg, #f7fafa 0%, #f0f7f5 100%);
    border: 1px solid rgba(11, 94, 99, 0.08);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
}

.price-display, .price-quote { margin-bottom: 16px; }

.price-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.price-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.price-note {
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-top: 2px;
}

.stock-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.stock-status.in-stock { color: #16a34a; }
.stock-status.out-of-stock { color: #d97706; }

/* Add to Cart row */
.add-to-cart-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.add-to-cart-row .btn {
    flex: 1;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.qty-btn {
    width: 44px;
    height: 48px;
    border: none;
    background: transparent;
    color: var(--gray-600);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.qty-input {
    width: 52px;
    height: 48px;
    border: none;
    border-left: 1px solid var(--gray-200);
    border-right: 1px solid var(--gray-200);
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Product trust signals */
.product-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 20px 0;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 28px;
}

.product-trust span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--gray-500);
    text-align: center;
    line-height: 1.3;
}

.product-trust i {
    font-size: 1.1rem;
    color: var(--primary);
    opacity: 0.7;
}

/* Product features */
.product-features {
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid var(--gray-100);
    border-radius: 14px;
    padding: 24px;
}

.product-features h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.product-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-50, #f8fafa);
}

.product-features li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.product-features li i {
    color: #fff;
    font-size: 0.65rem;
    background: var(--primary);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Product description section */
.product-description-section {
    margin-top: 56px;
    padding: 40px;
    background: var(--gray-50, #f8fafa);
    border-radius: 20px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.product-description-section h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.description-content {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.8;
    max-width: 800px;
}

/* Related products */
.related-products {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--gray-100);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.related-products h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 28px;
    text-align: center;
}

/* Page header compact (breadcrumb) */
.page-header-compact {
    padding: 16px 0;
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--gray-400);
}

.breadcrumb a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 8px; opacity: 0.5; }

/* Flash messages */
.flash-message {
    padding: 12px 0;
    position: relative;
}

.flash-message .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flash-success { background: #d4edda; color: #155724; }
.flash-error { background: #f8d7da; color: #721c24; }
.flash-info { background: #d1ecf1; color: #0c5460; }

.flash-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
}

/* --- NOTIFICATION TOAST --- */
.notification-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    transform: translateX(120%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 400px;
}

.notification-toast.show {
    transform: translateX(0);
}

.notification-success {
    background: #0B5E63;
    color: #fff;
}

.notification-warning {
    background: #d97706;
    color: #fff;
}

.notification-error {
    background: #dc2626;
    color: #fff;
}

.notification-toast i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* --- CART PAGE --- */
.cart-section {
    padding: 40px 0 64px;
    background: #fff;
}

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

.empty-cart i {
    font-size: 4rem;
    color: var(--gray-200);
    margin-bottom: 20px;
}

.empty-cart h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.empty-cart p {
    color: var(--gray-500);
    margin-bottom: 24px;
}

.free-shipping-banner {
    background: linear-gradient(135deg, #f0f9ff, #e0f7fa);
    border: 1px solid rgba(11, 94, 99, 0.12);
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: var(--gray-700);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.free-shipping-banner i {
    color: var(--primary);
    font-size: 1.1rem;
}

.free-shipping-banner.earned {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-color: rgba(22, 163, 74, 0.15);
}

.free-shipping-banner.earned i {
    color: #16a34a;
}

.shipping-progress {
    width: 100%;
    height: 6px;
    background: rgba(11, 94, 99, 0.1);
    border-radius: 100px;
    overflow: hidden;
}

.shipping-progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 100px;
    transition: width 0.3s;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.cart-items {
    background: #fff;
}

.cart-header-row {
    display: grid;
    grid-template-columns: 3fr 100px 150px 100px 40px;
    gap: 12px;
    align-items: center;
    padding: 12px 20px;
    background: var(--gray-50, #f8fafa);
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.cart-item {
    display: grid;
    grid-template-columns: 3fr 100px 150px 100px 40px;
    gap: 12px;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.2s;
}

.cart-item:hover {
    background: rgba(11, 94, 99, 0.02);
}

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

.cart-col-product img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    background: linear-gradient(135deg, rgba(11, 94, 99, 0.85), rgba(45, 139, 111, 0.75));
    border-radius: 10px;
    padding: 6px;
    flex-shrink: 0;
}

.cart-col-product h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.cart-sku {
    font-size: 0.78rem;
    color: var(--gray-400);
}

.cart-oos-note {
    display: block;
    font-size: 0.78rem;
    color: #d97706;
    margin-top: 4px;
}

.cart-col-price,
.cart-col-subtotal {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-700);
}

.cart-col-subtotal {
    color: var(--primary);
}

.cart-col-qty .quantity-selector {
    display: inline-flex;
    margin: 0;
    flex-direction: row;
    gap: 0;
}

.btn-remove {
    background: none;
    border: none;
    color: var(--gray-400);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

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

.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-top: 8px;
}

.cart-summary {
    background: #fff;
    border: 1px solid var(--gray-100);
    border-radius: 16px;
    padding: 28px;
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-100);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.summary-row.summary-total {
    border-top: 2px solid var(--gray-200);
    margin-top: 12px;
    padding-top: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
}

.cart-summary .btn-block {
    margin-top: 20px;
}

.summary-trust {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}

.summary-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--gray-400);
}

.summary-trust i { color: var(--primary); opacity: 0.6; }

/* --- CHECKOUT PAGE --- */
.checkout-section {
    padding: 40px 0 64px;
    background: var(--gray-50, #f8fafa);
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

.checkout-section-box {
    background: #fff;
    border: 1px solid var(--gray-100);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 20px;
}

.checkout-section-box h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-section-box h3 i {
    color: var(--primary);
    font-size: 1rem;
}

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

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

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

.form-row .form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: var(--font-body);
    color: var(--gray-800);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 94, 99, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Shipping options */
.shipping-options,
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shipping-option,
.payment-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.shipping-option:hover,
.payment-option:hover {
    border-color: rgba(11, 94, 99, 0.3);
    background: rgba(11, 94, 99, 0.02);
}

.shipping-option:has(input:checked),
.payment-option:has(input:checked) {
    border-color: var(--primary);
    background: rgba(11, 94, 99, 0.04);
}

.shipping-option input,
.payment-option input {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.shipping-option-info,
.payment-option-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shipping-name,
.payment-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-800);
}

.shipping-cost {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
}

.payment-desc {
    font-size: 0.82rem;
    color: var(--gray-500);
}

/* Checkout sidebar / order summary */
.checkout-sidebar {
    position: sticky;
    top: 100px;
}

.order-summary {
    background: #fff;
    border: 1px solid var(--gray-100);
    border-radius: 16px;
    padding: 28px;
}

.order-summary h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-100);
}

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

.summary-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-50, #f8fafa);
}

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

.summary-item-img {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.summary-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: linear-gradient(135deg, rgba(11, 94, 99, 0.85), rgba(45, 139, 111, 0.75));
    border-radius: 8px;
    padding: 4px;
}

.summary-qty-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.summary-item-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.summary-item-name {
    font-size: 0.85rem;
    color: var(--gray-700);
    font-weight: 500;
}

.summary-item-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-800);
    white-space: nowrap;
}

.summary-totals {
    border-top: 1px solid var(--gray-200);
    padding-top: 16px;
}

.order-summary .btn-block {
    margin-top: 20px;
}

/* --- CONFIRMATION PAGE --- */
.confirmation-section {
    padding: 48px 0 64px;
    background: #fff;
}

.confirmation-header {
    text-align: center;
    margin-bottom: 40px;
}

.success-icon {
    font-size: 4rem;
    color: #16a34a;
    margin-bottom: 16px;
}

.confirmation-header h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.order-number {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.order-number strong {
    color: var(--primary);
    font-family: monospace;
    font-size: 1.15rem;
}

.confirmation-header p {
    color: var(--gray-500);
    font-size: 0.95rem;
}

/* Bank details */
.bank-details-box {
    background: linear-gradient(135deg, #eff6ff, #e8f4fd);
    border: 1px solid rgba(11, 94, 99, 0.12);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.bank-details-box h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bank-details-box h3 i { color: var(--primary); }

.bank-info {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin: 16px 0;
}

.bank-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-50, #f8fafa);
    font-size: 0.9rem;
}

.bank-row:last-child { border-bottom: none; }

.bank-row span { color: var(--gray-500); }
.bank-row strong { color: var(--gray-800); }

.bank-note {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-top: 12px;
}

.bank-note a { color: var(--primary); }

/* Confirmation summary */
.confirmation-summary,
.confirmation-shipping {
    background: var(--gray-50, #f8fafa);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.confirmation-summary h3,
.confirmation-shipping h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 16px;
}

.confirmation-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.9rem;
}

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

.conf-qty {
    font-weight: 700;
    color: var(--primary);
    min-width: 32px;
}

.conf-name {
    flex: 1;
    color: var(--gray-700);
}

.conf-price {
    font-weight: 600;
    color: var(--gray-800);
}

.confirmation-totals {
    border-top: 1px solid var(--gray-200);
    margin-top: 12px;
    padding-top: 12px;
}

.confirmation-shipping p {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Confirmation steps */
.confirmation-steps {
    max-width: 600px;
    margin: 32px auto;
}

.confirmation-steps h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 20px;
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.steps-grid .step {
    text-align: center;
    padding: 20px 16px;
    background: var(--gray-50, #f8fafa);
    border-radius: 14px;
}

.steps-grid .step i {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.steps-grid .step h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 6px;
}

.steps-grid .step p {
    font-size: 0.8rem;
    color: var(--gray-500);
    line-height: 1.4;
}

.confirmation-actions {
    text-align: center;
    margin-top: 32px;
}

.confirmation-support {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--gray-500);
}

.confirmation-support a { color: var(--primary); }

/* --- Buttons --- */
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-ghost {
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

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

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

/* Alerts */
.alert {
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid rgba(146, 64, 14, 0.1);
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid rgba(6, 95, 70, 0.1);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .product-gallery {
        position: static;
    }
    .product-gallery-main {
        max-width: 480px;
        margin: 0 auto;
    }
    .product-description-section {
        padding: 32px;
    }
    .cart-layout {
        grid-template-columns: 1fr;
    }
    .cart-summary {
        position: static;
    }
    .checkout-layout {
        grid-template-columns: 1fr;
    }
    .checkout-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .shop-layout { grid-template-columns: 1fr; }
    .shop-sidebar { position: static; max-height: none; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .product-detail { padding: 32px 0 48px; }
    .product-info-detail .product-title { font-size: 1.5rem; }
    .product-trust { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
    .product-trust span { font-size: 0.72rem; }
    .add-to-cart-row { flex-direction: column; align-items: stretch; }
    .add-to-cart-row .btn { text-align: center; justify-content: center; }
    .product-description-section { padding: 24px; margin-top: 40px; }
    .product-features { padding: 20px; }
    /* Cart responsive */
    .cart-header-row { display: none; }
    .cart-item {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }
    .cart-col-product { order: 1; }
    .cart-col-price { order: 2; }
    .cart-col-qty { order: 3; }
    .cart-col-qty .quantity-selector { flex-direction: row; margin: 0; gap: 0; }
    .cart-col-subtotal { order: 4; font-size: 1.1rem; }
    .cart-col-remove { order: 5; }
    .cart-actions { flex-direction: column; gap: 12px; }
    /* Checkout responsive */
    .form-row { grid-template-columns: 1fr; }
    .form-row-3 { grid-template-columns: 1fr; }
    .checkout-section-box { padding: 20px; }
    .shipping-option-info,
    .payment-option-info { flex-direction: column; align-items: flex-start; gap: 4px; }
    /* Confirmation responsive */
    .steps-grid { grid-template-columns: 1fr; gap: 12px; }
    .confirmation-summary,
    .confirmation-shipping,
    .bank-details-box { padding: 20px; }
    .notification-toast { right: 12px; left: 12px; max-width: none; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; }
    .product-grid-4 { grid-template-columns: 1fr; }
    .product-meta-badges { gap: 6px; }
    .meta-badge { font-size: 0.72rem; padding: 5px 12px; }
    .product-price-box { padding: 20px; }
    .price-value { font-size: 1.6rem; }
    .size-selector { padding: 16px 20px; }
    .product-trust { grid-template-columns: 1fr; gap: 12px; }
    .product-trust span { flex-direction: row; }
}
