/* ====================================
   GLOBAL STYLES & RESET
   Cross-browser normalization
   ==================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* Prevent font size inflation on mobile */
html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Remove default button styles */
button {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Improve media defaults */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Remove built-in form typography styles */
input, button, textarea, select {
    font: inherit;
}

/* Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

/* iOS tap highlight */
a, button {
    -webkit-tap-highlight-color: transparent;
}

:root {
    /* Header height for viewport calculations */
    --header-height: 80px;

    /* Topographic Color Palette - Inspired by Hero Background */
    --primary-teal: #2D5F5D;
    --primary-gold: #D4AF37;
    --primary-bronze: #B8935F;
    --accent-teal: #1B4947;
    --accent-gold: #E6C87F;
    --deep-green: #1E3A3A;
    --metallic-bronze: #C9A961;
    --dark-teal: #0F2625;
    --brass: #B8935F;

    /* Neutral Colors */
    --dark-text: #ffffff;
    --light-text: #b0b0b0;
    --background: #000000;
    --light-bg: #1a1a1a;
    --border: #333333;

    /* Gradients - Matching Topographic Theme */
    --gradient-topo: linear-gradient(135deg, #2D5F5D 0%, #C9A961 100%);
    --gradient-bronze: linear-gradient(135deg, #8B6F47 0%, #D4AF37 100%);
    --gradient-teal: linear-gradient(135deg, #1B4947 0%, #2D5F5D 100%);
    --gradient-metallic: linear-gradient(135deg, #C9A961 0%, #2D5F5D 50%, #8B6F47 100%);
    --gradient-terrazzo: linear-gradient(135deg, #2D5F5D 0%, #C9A961 50%, #1E3A3A 100%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
}

html {
    scroll-behavior: smooth;
    /* Fallback for browsers that don't support smooth scroll */
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--background);
    /* Improve font rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ====================================
   HEADER & NAVIGATION
   ==================================== */

header {
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.navbar {
    padding: var(--spacing-sm) 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}

.logo {
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-align: center;
    color: var(--brass);
    text-shadow: 0 0 10px rgba(184, 147, 95, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1em;
    transition: color 1s ease-in-out, text-shadow 1s ease-in-out;
}

.logo-the {
    font-size: 0.5em;
    font-weight: 500;
    letter-spacing: 0.4em;
    display: flex;
    align-items: center;
    gap: 0.5em;
    white-space: nowrap;
}

.logo-line {
    display: inline-block;
    width: 2em;
    height: 0;
    border-bottom: 2px solid var(--brass);
    opacity: 0.8;
    vertical-align: middle;
    margin: 0 0.3em;
    transition: border-bottom-color 1s ease-in-out;
}

.logo-main {
    font-size: 1.8em;
    font-weight: 700;
    letter-spacing: 0.25em;
    display: block;
    color: var(--primary-gold);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    margin: 0.05em 0;
    margin-right: -0.25em;
    transition: color 1s ease-in-out, text-shadow 1s ease-in-out;
}

.logo-sub {
    font-size: 0.6em;
    font-weight: 500;
    letter-spacing: 0.3em;
    display: flex;
    align-items: center;
    gap: 0.5em;
    white-space: nowrap;
}

.logo-dash {
    display: inline-block;
    width: 0.8em;
    height: 0;
    border-bottom: 2px solid var(--brass);
    opacity: 0.8;
    vertical-align: middle;
    margin: 0 0.3em;
    transition: border-bottom-color 1s ease-in-out;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-links a {
    font-family: 'Cormorant Garamond', serif;
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 1s ease-in-out, text-shadow 1s ease-in-out;
    position: relative;
    letter-spacing: 0.03em;
    --nav-hover-color: var(--primary-gold);
    --nav-secondary-color: var(--brass);
}

.nav-links a:hover {
    color: var(--nav-hover-color);
    text-shadow: 0 0 8px currentColor;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--nav-secondary-color);
    transition: width 0.3s ease, background 1s ease-in-out;
}

.nav-links a:hover::after {
    width: 100%;
}

.cart-button {
    font-family: 'Rajdhani', sans-serif;
    --cart-color-1: #B8935F;
    --cart-color-2: #D4AF37;
    background: linear-gradient(135deg, var(--cart-color-1) 0%, var(--cart-color-2) 100%);
    color: #000000;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: --cart-color-1 1s ease-in-out, --cart-color-2 1s ease-in-out, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-sm);
    text-transform: uppercase;
}

@supports (background: paint(smooth-corners)) {
    .cart-button {
        transition: all 0.3s ease;
    }
}

@property --cart-color-1 {
    syntax: '<color>';
    inherits: false;
    initial-value: #B8935F;
}

@property --cart-color-2 {
    syntax: '<color>';
    inherits: false;
    initial-value: #D4AF37;
}

.cart-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ====================================
   HERO SECTION
   ==================================== */

.hero {
    background: var(--gradient-terrazzo);
    background-image: url('images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: var(--spacing-xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.hero-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: var(--spacing-sm);
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.4);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--brass);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8), 0 0 15px rgba(184, 147, 95, 0.3);
    letter-spacing: 0.05em;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin: 0 auto var(--spacing-md);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5);
}

.cta-button {
    font-family: 'Rajdhani', sans-serif;
    display: inline-block;
    background: var(--gradient-bronze);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* ====================================
   PAGE HEADER (for non-home pages)
   ==================================== */

.page-header {
    padding: var(--spacing-lg) 0;
    background: var(--gradient-terrazzo);
    background-image: url('images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.page-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.15em;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    text-transform: uppercase;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--light-text);
}

/* ====================================
   PRODUCTS SECTION
   ==================================== */

.products {
    padding: var(--spacing-xl) 0;
    background: var(--background);
}

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

.section-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-gold);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    text-transform: uppercase;
}

.section-subtitle {
    text-align: center;
    color: var(--light-text);
    margin-bottom: var(--spacing-lg);
    font-size: 1.1rem;
}

/* Products section titles */
.products .section-title,
.products .section-subtitle {
    padding: 0 var(--spacing-md);
}

.products-grid {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-flex-direction: column;
    -moz-box-orient: vertical;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.product-card {
    background: var(--light-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border);
    -webkit-transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    -moz-transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    -o-transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-animation: fadeInUp 0.6s ease forwards;
    -moz-animation: fadeInUp 0.6s ease forwards;
    -o-animation: fadeInUp 0.6s ease forwards;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    /* Square card centered on screen */
    aspect-ratio: 1 / 1;
    width: calc(100vw - 40px);
    max-width: 700px;
    height: auto;
    min-width: 280px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    margin: 20px auto;
}

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

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

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

/* Product 1 - Fordite Delight (Orange-Red/Lime Green) */
.product-card:nth-child(1) {
    animation-delay: 0.1s;
    border-color: rgba(255, 87, 34, 0.3);
}

.product-card:nth-child(1):hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(255, 87, 34, 0.4);
    border-color: #FF5722;
}

/* Product 2 - Zebra Wood (Brown/Tan) */
.product-card:nth-child(2) {
    animation-delay: 0.2s;
    border-color: rgba(139, 111, 71, 0.3);
}

.product-card:nth-child(2):hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(210, 180, 140, 0.4);
    border-color: #D2B48C;
}

/* Product 3 - Midnight Terrazzo (Purple/Orange/Green) */
.product-card:nth-child(3) {
    animation-delay: 0.3s;
    border-color: rgba(181, 101, 216, 0.3);
}

.product-card:nth-child(3):hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(181, 101, 216, 0.4);
    border-color: #B565D8;
}

/* Product 4 - Confetti Dream (Bright Multicolor) */
.product-card:nth-child(4) {
    animation-delay: 0.4s;
    border-color: rgba(255, 105, 180, 0.3);
}

.product-card:nth-child(4):hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(255, 105, 180, 0.4);
    border-color: #FF69B4;
}

/* Product 5 - Sunset Terrazzo (Orange Border) */
.product-card:nth-child(5) {
    animation-delay: 0.5s;
    border-color: rgba(255, 107, 53, 0.3);
}

.product-card:nth-child(5):hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(255, 140, 66, 0.4);
    border-color: #FF6B35;
}

.product-image {
    width: 100%;
    flex: 3;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Image Carousel Styles */
.image-carousel {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.carousel-image.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 10;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.product-card:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.85);
    -webkit-transform: translateY(-50%) scale(1.1);
    -moz-transform: translateY(-50%) scale(1.1);
    -ms-transform: translateY(-50%) scale(1.1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 0, 0, 0.3);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.dot.active {
    background: white;
    transform: scale(1.3);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Product 1 - Fordite Delight background */
.product-card:nth-child(1) .product-image {
    background: linear-gradient(135deg, #FF5722 0%, #7CFC00 100%);
}

/* Product 2 - Zebra Wood background */
.product-card:nth-child(2) .product-image {
    background: linear-gradient(135deg, #8B6F47 0%, #D2B48C 100%);
}

/* Product 3 - Midnight Terrazzo background */
.product-card:nth-child(3) .product-image {
    background: linear-gradient(135deg, #B565D8 0%, #FF8C42 50%, #7CFC00 100%);
}

/* Product 4 - Confetti Dream background */
.product-card:nth-child(4) .product-image {
    background: linear-gradient(135deg, #FF69B4 0%, #B565D8 33%, #90EE90 66%, #FF8C42 100%);
}

/* Product 5 - Sunset Terrazzo background */
.product-card:nth-child(5) .product-image {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
}

.placeholder-image {
    font-size: 3rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.product-info {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1.2;
}

.product-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--dark-text);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-description {
    color: var(--light-text);
    margin-bottom: var(--spacing-sm);
    font-size: 0.95rem;
}

.product-details {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.product-material,
.product-finish {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-gold);
}

/* Product-specific tag colors (SECONDARY colors from photos) */
.product-card:nth-child(1) .product-material,
.product-card:nth-child(1) .product-finish {
    color: #7CFC00;
    background: rgba(124, 252, 0, 0.15);
}

.product-card:nth-child(2) .product-material,
.product-card:nth-child(2) .product-finish {
    color: #D2B48C;
    background: rgba(210, 180, 140, 0.1);
}

.product-card:nth-child(3) .product-material,
.product-card:nth-child(3) .product-finish {
    color: #B565D8;
    background: rgba(181, 101, 216, 0.1);
}

.product-card:nth-child(4) .product-material,
.product-card:nth-child(4) .product-finish {
    color: #FF69B4;
    background: rgba(255, 105, 180, 0.1);
}

.product-card:nth-child(5) .product-material,
.product-card:nth-child(5) .product-finish {
    color: #FF8C42;
    background: rgba(255, 140, 66, 0.1);
}

.product-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    width: 100%;
}

/* Size selection buttons */
.size-buttons {
    display: flex;
    gap: 0.8rem;
    width: 100%;
    justify-content: center;
}

.size-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--primary-gold);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--dark-text);
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 160px;
    min-width: 100px;
}

.size-btn:hover {
    background: var(--gradient-bronze);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

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

.size-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.size-price {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-gold);
}

.size-btn:hover .size-price {
    color: #000;
}

/* Disabled/Sold Out size buttons */
.size-btn:disabled,
.size-btn.sold-out {
    cursor: not-allowed;
    opacity: 0.6;
    border-color: #666;
    background: rgba(50, 50, 50, 0.3);
}

.size-btn:disabled .size-price,
.size-btn.sold-out .size-price {
    color: #888;
}

.size-btn:disabled:hover,
.size-btn.sold-out:hover {
    transform: none;
    box-shadow: none;
    background: rgba(50, 50, 50, 0.3);
    border-color: #666;
}

.size-btn:disabled:hover .size-price,
.size-btn.sold-out:hover .size-price {
    color: #888;
}

/* Product-specific size button colors */
.product-card:nth-child(1) .size-btn {
    border-color: #FF5722;
}

.product-card:nth-child(1) .size-price {
    color: #FF5722;
}

.product-card:nth-child(1) .size-btn:hover {
    background: linear-gradient(135deg, #FF5722 0%, #7CFC00 100%);
    border-color: #FF5722;
}

.product-card:nth-child(1) .size-btn:hover .size-price {
    color: #000;
}

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

/* Product-specific price colors (PRIMARY colors from photos) */
.product-card:nth-child(1) .product-price {
    color: #FF5722;
}

.product-card:nth-child(2) .product-price {
    color: #D2B48C;
}

.product-card:nth-child(3) .product-price {
    color: #B565D8;
}

.product-card:nth-child(4) .product-price {
    color: #FF69B4;
}

.product-card:nth-child(5) .product-price {
    color: #FF8C42;
}

.add-to-cart {
    font-family: 'Cormorant Garamond', serif;
    background: var(--gradient-topo);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Product-specific button colors */
.product-card:nth-child(1) .add-to-cart {
    background: linear-gradient(135deg, #FF5722 0%, #7CFC00 100%);
}

.product-card:nth-child(2) .add-to-cart {
    background: linear-gradient(135deg, #8B6F47 0%, #D2B48C 100%);
}

.product-card:nth-child(3) .add-to-cart {
    background: linear-gradient(135deg, #B565D8 0%, #9B59B6 100%);
}

.product-card:nth-child(4) .add-to-cart {
    background: linear-gradient(135deg, #FF69B4 0%, #B565D8 100%);
}

.product-card:nth-child(5) .add-to-cart {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
}

/* ====================================
   PAST PRODUCTS / SOLD OUT STYLES
   ==================================== */

.past-product {
    opacity: 0.85;
}

.past-product:hover {
    opacity: 1;
}

/* Past product-specific tag colors (SECONDARY colors from photos) */
.past-product:nth-child(1) .product-material,
.past-product:nth-child(1) .product-finish {
    color: #E0E0E0;
    background: rgba(224, 224, 224, 0.15);
}

.past-product:nth-child(2) .product-material,
.past-product:nth-child(2) .product-finish {
    color: #C19A6B;
    background: rgba(193, 154, 107, 0.15);
}

.past-product:nth-child(3) .product-material,
.past-product:nth-child(3) .product-finish {
    color: #FFA07A;
    background: rgba(255, 160, 122, 0.15);
}

.past-product:nth-child(4) .product-material,
.past-product:nth-child(4) .product-finish {
    color: #C0C0C0;
    background: rgba(192, 192, 192, 0.15);
}

.past-product:nth-child(5) .product-material,
.past-product:nth-child(5) .product-finish {
    color: #1E90FF;
    background: rgba(30, 144, 255, 0.15);
}

.past-product:nth-child(6) .product-material,
.past-product:nth-child(6) .product-finish {
    color: #8B6F47;
    background: rgba(139, 111, 71, 0.15);
}

.past-product:nth-child(7) .product-material,
.past-product:nth-child(7) .product-finish {
    color: #5C4033;
    background: rgba(92, 64, 51, 0.15);
}

.past-product:nth-child(8) .product-material,
.past-product:nth-child(8) .product-finish {
    color: #9B59B6;
    background: rgba(155, 89, 182, 0.15);
}

.past-product:nth-child(9) .product-material,
.past-product:nth-child(9) .product-finish {
    color: #FF8C42;
    background: rgba(255, 140, 66, 0.15);
}

.past-product:nth-child(10) .product-material,
.past-product:nth-child(10) .product-finish {
    color: #9B59B6;
    background: rgba(155, 89, 182, 0.15);
}

/* Past product price colors (PRIMARY colors from photos) */
.past-product:nth-child(1) .product-price {
    color: #C87533;
}

.past-product:nth-child(2) .product-price {
    color: #A0252F;
}

.past-product:nth-child(3) .product-price {
    color: #4A90E2;
}

.past-product:nth-child(4) .product-price {
    color: #9370DB;
}

.past-product:nth-child(5) .product-price {
    color: #E74C3C;
}

.past-product:nth-child(6) .product-price {
    color: #FA8072;
}

.past-product:nth-child(7) .product-price {
    color: #E67E22;
}

.past-product:nth-child(8) .product-price {
    color: #FF7F50;
}

.past-product:nth-child(9) .product-price {
    color: #B565D8;
}

.past-product:nth-child(10) .product-price {
    color: #FF7F00;
}

/* Past product hover effects (PRIMARY colors from photos) */
.past-product:nth-child(1):hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(200, 117, 51, 0.4);
    border-color: #C87533;
}

.past-product:nth-child(2):hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(160, 37, 47, 0.4);
    border-color: #A0252F;
}

.past-product:nth-child(3):hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(74, 144, 226, 0.4);
    border-color: #4A90E2;
}

.past-product:nth-child(4):hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(147, 112, 219, 0.4);
    border-color: #9370DB;
}

.past-product:nth-child(5):hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(231, 76, 60, 0.4);
    border-color: #E74C3C;
}

.past-product:nth-child(6):hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(250, 128, 114, 0.4);
    border-color: #FA8072;
}

.past-product:nth-child(7):hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(230, 126, 34, 0.4);
    border-color: #E67E22;
}

.past-product:nth-child(8):hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(255, 127, 80, 0.4);
    border-color: #FF7F50;
}

.past-product:nth-child(9):hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(181, 101, 216, 0.4);
    border-color: #B565D8;
}

.past-product:nth-child(10):hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(255, 127, 0, 0.4);
    border-color: #FF7F00;
}

.sold-out-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    color: var(--primary-gold);
    padding: 0.75rem 2rem;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: var(--radius-sm);
    border: 2px solid var(--primary-gold);
    z-index: 2;
    letter-spacing: 2px;
}

.sold-out-button {
    background: var(--border);
    color: var(--light-text);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    white-space: nowrap;
    cursor: not-allowed;
    opacity: 0.6;
}

/* ====================================
   ABOUT SECTION
   ==================================== */

.about {
    padding: var(--spacing-xl) 0;
    background: var(--background);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.step {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--light-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(201, 169, 97, 0.3);
    border-color: var(--primary-gold);
}

.step:nth-child(1) {
    background: linear-gradient(135deg, rgba(45, 95, 93, 0.2), rgba(27, 73, 71, 0.1));
}

.step:nth-child(2) {
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.2), rgba(212, 175, 55, 0.1));
}

.step:nth-child(3) {
    background: linear-gradient(135deg, rgba(139, 111, 71, 0.2), rgba(156, 126, 79, 0.1));
}

.step-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.step h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.3rem;
    margin-bottom: var(--spacing-xs);
    color: var(--dark-text);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.step p {
    font-size: 0.95rem;
    color: var(--light-text);
    margin-bottom: 0;
}

.about-highlight {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-gold);
    margin-top: var(--spacing-md);
}

/* ====================================
   CONTACT SECTION
   ==================================== */

.contact {
    padding: var(--spacing-xl) 0;
    background: var(--background);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.contact-item {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--light-bg);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(201, 169, 97, 0.3);
    border-color: var(--primary-gold);
}

.contact-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: var(--spacing-sm);
}

.contact-item p {
    color: var(--light-text);
    font-weight: 500;
}

/* ====================================
   FOOTER
   ==================================== */

footer {
    background: var(--light-bg);
    color: var(--light-text);
    text-align: center;
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--border);
}

footer p {
    opacity: 0.9;
}

/* ====================================
   MODAL STYLES
   ==================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: var(--light-bg);
    margin: 5% auto;
    padding: 0;
    border-radius: var(--radius-md);
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
    box-shadow: 0 8px 32px rgba(255, 141, 66, 0.3);
    border: 1px solid var(--border);
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--light-bg);
    z-index: 10;
}

.modal-header h2 {
    font-family: 'Rajdhani', sans-serif;
    margin: 0;
    color: var(--primary-gold);
    letter-spacing: 0.12em;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    text-transform: uppercase;
}

.close,
.close-checkout {
    font-size: 2rem;
    font-weight: 300;
    color: var(--light-text);
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.close:hover,
.close-checkout:hover {
    color: var(--primary-pink);
    transform: rotate(90deg);
}

/* ====================================
   CART STYLES
   ==================================== */

.cart-items {
    padding: var(--spacing-md);
    min-height: 200px;
}

.empty-cart {
    text-align: center;
    color: var(--light-text);
    padding: var(--spacing-lg) 0;
    font-size: 1.1rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: var(--spacing-md);
    align-items: center;
    padding: var(--spacing-md);
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-sm);
}

.cart-item-info h4 {
    font-family: 'Rajdhani', sans-serif;
    margin-bottom: 0.25rem;
    color: var(--dark-text);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cart-item-price {
    color: var(--light-text);
    font-size: 0.9rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: var(--gradient-topo);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    transform: scale(1.1);
}

.quantity {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.remove-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.25rem;
}

.remove-btn:hover {
    transform: scale(1.2);
}

.cart-item-total {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-gold);
    text-align: right;
}

.cart-footer {
    padding: var(--spacing-md);
    border-top: 2px solid var(--border);
    position: sticky;
    bottom: 0;
    background: var(--light-bg);
}

.cart-total {
    text-align: right;
    margin-bottom: var(--spacing-md);
}

.cart-total h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    color: var(--primary-gold);
    letter-spacing: 0.08em;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    text-transform: uppercase;
}

.checkout-button {
    font-family: 'Rajdhani', sans-serif;
    width: 100%;
    background: var(--gradient-topo);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.checkout-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ====================================
   CHECKOUT FORM STYLES
   ==================================== */

.checkout-content {
    padding: var(--spacing-md);
}

.checkout-content h3 {
    font-family: 'Rajdhani', sans-serif;
    margin: var(--spacing-md) 0 var(--spacing-sm) 0;
    color: var(--dark-text);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.checkout-content h3:first-child {
    margin-top: 0;
}

.checkout-summary {
    margin-bottom: var(--spacing-lg);
}

.checkout-items {
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm);
    margin: var(--spacing-sm) 0;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid var(--border);
}

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

.checkout-item-info {
    display: flex;
    gap: var(--spacing-xs);
    align-items: center;
}

.checkout-item-name {
    font-weight: 600;
    color: var(--dark-text);
}

.checkout-item-quantity {
    color: var(--light-text);
    font-size: 0.9rem;
}

.checkout-item-price {
    font-weight: 700;
    color: var(--primary-gold);
}

.checkout-total {
    text-align: right;
    margin: var(--spacing-md) 0;
}

.checkout-total h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    color: var(--primary-gold);
    letter-spacing: 0.08em;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    text-transform: uppercase;
}

.payment-section {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 2px solid var(--border);
}

.payment-note {
    color: var(--light-text);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

#paypal-button-container {
    margin: var(--spacing-md) 0;
    min-height: 50px;
}

.paypal-notice {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: var(--radius-sm);
    padding: var(--spacing-md);
    margin: var(--spacing-sm) 0;
}

.paypal-notice strong {
    display: block;
    margin-bottom: var(--spacing-sm);
    color: var(--dark-text);
}

.paypal-notice ol {
    margin-left: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.paypal-notice li {
    margin-bottom: var(--spacing-xs);
    color: var(--dark-text);
}

.paypal-notice code {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--dark-text);
}

.paypal-notice p {
    margin-bottom: var(--spacing-xs);
    color: var(--dark-text);
}

.paypal-notice a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.demo-payment-btn {
    width: 100%;
    background: var(--gradient-topo);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: var(--spacing-sm);
}

.demo-payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.payment-message {
    margin-top: var(--spacing-md);
    min-height: 20px;
}

.payment-message-error {
    background: #f8d7da;
    color: #721c24;
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    border: 1px solid #f5c6cb;
}

.payment-message-info {
    background: #d1ecf1;
    color: #0c5460;
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    border: 1px solid #bee5eb;
}

.success-details {
    background: #d4edda;
    color: #155724;
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    border: 2px solid #c3e6cb;
}

.success-details h3 {
    color: #155724;
    margin: 0 0 var(--spacing-sm) 0;
}

.success-details p {
    margin: var(--spacing-xs) 0;
    color: #155724;
}

.success-details strong {
    font-weight: 700;
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

@media (max-width: 768px) {
    :root {
        --header-height: 120px; /* Taller header on tablets due to wrapped nav */
    }

    .navbar .container {
        flex-wrap: wrap;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        padding-top: var(--spacing-sm);
        gap: var(--spacing-sm);
        font-size: 0.9rem;
    }

    /* Fix background image on mobile */
    .hero,
    .page-header {
        background-attachment: scroll;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Square product cards on tablet - one per screen */
    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        justify-items: center;
        padding: 0 20px;
    }

    .product-card {
        aspect-ratio: 1 / 1;
        width: calc(100vw - 40px);
        max-width: 600px;
        height: auto;
        min-height: auto;
        max-height: none;
        margin: 20px auto;
    }

    /* More image, less info on tablet */
    .product-image {
        flex: 4;
    }

    .product-info {
        flex: 1;
        padding: var(--spacing-sm);
    }

    .product-description {
        display: none;
    }

    .product-name {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }

    .product-price {
        font-size: 1.1rem;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

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

    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cart-item-controls {
        justify-content: center;
    }

    .cart-item-total {
        text-align: center;
    }

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

    .modal-content {
        margin: 5% auto;
        width: 95%;
        max-height: 85vh;
    }

    .cart-button {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }

    .logo h1 {
        font-size: 0.85rem;
    }

    .logo-line,
    .logo-dash {
        font-size: 0.7em;
    }

    /* Carousel adjustments for tablet */
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 110px; /* Adjusted for smaller screens */
    }

    .container {
        padding: 0 1rem;
    }

    /* Products container needs no padding */
    .products > .container {
        padding: 0;
    }

    .logo h1 {
        font-size: 0.7rem;
    }

    .logo-main {
        font-size: 1.5em !important;
    }

    .logo-the,
    .logo-sub {
        gap: 0.3em;
        font-size: 0.45em;
    }

    .logo-line,
    .logo-dash {
        width: 0.5em;
    }

    .nav-links {
        gap: 0.5rem;
        font-size: 0.85rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero {
        padding: var(--spacing-md) 0;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    /* Keep products section with no padding for fullscreen cards */
    .products {
        padding: 0;
    }

    .about,
    .contact {
        padding: var(--spacing-md) 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* Square product cards on mobile - one per screen */
    .products-grid {
        padding: 0 10px;
    }

    .product-card {
        aspect-ratio: 1 / 1;
        width: calc(100vw - 20px);
        max-width: 500px;
        height: auto;
        min-height: auto;
        max-height: none;
        margin: 15px auto;
    }

    /* More image, less info on mobile */
    .product-image {
        flex: 5;
    }

    .product-info {
        flex: 1;
        padding: 0.6rem 0.8rem;
        gap: 0.3rem;
    }

    .product-description {
        display: none;
    }

    .product-details {
        margin: 0.2rem 0;
    }

    .product-material,
    .product-finish {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }

    .product-name {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }

    .product-price {
        font-size: 0.95rem;
    }

    .product-footer {
        gap: 0.5rem;
    }

    .add-to-cart,
    .sold-out-button {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* Size buttons on mobile */
    .size-buttons {
        gap: 0.4rem;
    }

    .size-btn {
        padding: 0.4rem 0.6rem;
        min-width: 70px;
        max-width: 120px;
    }

    .size-name {
        font-size: 0.7rem;
    }

    .size-price {
        font-size: 1rem;
    }

    /* Carousel adjustments for mobile - always visible on touch */
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 1.8rem;
        opacity: 0.7; /* Always visible on mobile (no hover) */
    }

    .product-card:hover .carousel-btn {
        opacity: 0.9;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .carousel-dots {
        bottom: 10px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    /* Fullscreen product grid on mobile */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .product-name {
        font-size: 1.1rem;
    }

    .product-description {
        font-size: 0.9rem;
    }

    .product-price {
        font-size: 1.2rem;
    }

    .add-to-cart {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    .cart-button {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }
}

/* Extra small phones */
@media (max-width: 360px) {
    :root {
        --header-height: 100px;
    }

    .logo h1 {
        font-size: 0.65rem;
    }

    .logo-main {
        font-size: 1.4em !important;
    }

    .nav-links {
        font-size: 0.8rem;
        gap: 0.4rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Square cards on extra small phones */
    .products-grid {
        padding: 0 8px;
    }

    .product-card {
        aspect-ratio: 1 / 1;
        width: calc(100vw - 16px);
        max-width: 400px;
        height: auto;
        min-height: auto;
        max-height: none;
        margin: 10px auto;
    }

    /* Even more image on small phones */
    .product-image {
        flex: 6;
    }

    .product-info {
        flex: 1;
        padding: 0.4rem 0.6rem;
        gap: 0.2rem;
    }

    .product-details {
        display: none;
    }

    .product-name {
        font-size: 0.9rem;
    }

    .product-price {
        font-size: 0.85rem;
    }

    .add-to-cart,
    .sold-out-button {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    /* Size buttons on small phones */
    .size-buttons {
        gap: 0.3rem;
    }

    .size-btn {
        padding: 0.3rem 0.4rem;
        min-width: 60px;
        max-width: 100px;
    }

    .size-name {
        font-size: 0.6rem;
    }

    .size-price {
        font-size: 0.85rem;
    }

    /* Smaller carousel controls */
    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 1.5rem;
    }

    .dot {
        width: 8px;
        height: 8px;
    }
}

/* ====================================
   UTILITY ANIMATIONS
   ==================================== */

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

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}
