/* Custom Fonts */
@font-face {
    font-family: 'Crimson Pro';
    src: url('CrimsonPro-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cooper Black';
    src: url('Cooper-Black.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --accent-primary: #2c3e50;
    --accent-dark: #1a252f;
    --accent-light: rgba(44, 62, 80, 0.1);
    --accent-glow: rgba(44, 62, 80, 0.4);
    --text-dark: #2c3e50;
    --text-medium: #5a6c7d;
    --text-light: #8e9eab;
    --border-light: #e0e6eb;
    --white: #ffffff;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
    /*background: linear-gradient(to bottom, #fdf7f7 0%, #fdf8f1 80%, #ece6cc 100%);*/
    background: #fdfdf7;
    background-attachment: fixed;
    color: var(--text-dark);
    min-height: 100vh;
}

/* Early Bird Sale Banner */
.sale-banner {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: #ffffff;
    padding: 12px 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.sale-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.sale-text {
    font-family: 'Cooper Black', 'DM Serif Display', serif;
    font-size: 1.3rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #f7ef8f;
}

.countdown-timer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 48px;
}

.countdown-value {
    font-family: 'DM Mono', monospace;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 12px;
    border-radius: 6px;
}

.countdown-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    opacity: 0.8;
}

.countdown-separator {
    font-family: 'DM Mono', monospace;
    font-size: 1.5rem;
    font-weight: 600;
    opacity: 0.6;
    margin-bottom: 18px;
}

@media (max-width: 500px) {
    .sale-banner {
        padding: 10px 15px;
    }
    
    .sale-banner-content {
        gap: 12px;
    }
    
    .sale-text {
        font-size: 1rem;
        width: 100%;
    }
    
    .countdown-item {
        min-width: 40px;
    }
    
    .countdown-value {
        font-size: 1.1rem;
        padding: 6px 8px;
    }
    
    .countdown-label {
        font-size: 0.55rem;
    }
    
    .countdown-separator {
        font-size: 1.1rem;
        margin-bottom: 14px;
    }
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* Page Navigation */
.page-nav {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
}

.page-nav a {
    margin: 0 15px;
    color: var(--text-medium);
    text-decoration: none;
    font-family: 'DM Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.page-nav a:hover {
    color: var(--accent-primary);
    background-color: var(--accent-light);
}

/* Header / Title Section */
.header {
    text-align: center;
    /* margin-bottom: 40px; */
    padding: 20px 0;
}

.title-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
}

.section-label {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-primary);
    text-align: left;
    margin-bottom: 10px;
}

.section-divider {
    border: none;
    height: 2px;
    background: linear-gradient(to right, var(--accent-primary), transparent);
    margin-bottom: 30px;
}

/* Product Section */
.product-section {
    flex-direction: column;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

/* Left Column */
.left-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

/* Right Column */
.right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 30px;
    padding-top: 20px;
}

/* Product Image */
.product-image-container {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.product-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Only apply hover effects on devices with hover capability (not touch screens) */
@media (hover: hover) and (pointer: fine) {
    .product-image:hover {
        transform: scale(1.02);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    }
}

/* Product Information */
.product-info {
    text-align: center;
    width: 100%;
}

.product-name {
    font-family: 'Crimson Pro';
    font-size: 2.4rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.product-description {
    font-family: 'Cooper Black', sans-serif;
    font-size: 1.2rem;
    color: var(--text-medium);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Price Container */
.price-container {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 15px;
}

.original-price {
    font-family: 'DM Mono', monospace;
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-light);
    position: relative;
    display: inline-block;
}

.original-price::after {
    content: '';
    position: absolute;
    left: 0%;
    top: 50%;
    width: 105%;
    height: 4px;
    background: #e74d3cb8;
    transform: rotate(-12deg);
}

.product-price {
    font-family: 'DM Mono', monospace;
    font-size: 2rem;
    font-weight: 500;
    color: var(--accent-primary);
}

.discount-badge {
    position: absolute;
    top: -12px;
    right: -75px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.0rem;
    font-weight: 600;
    padding: 6px 6px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
}

/* View Toggle */
.view-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.view-btn {
    width: 38px;
    height: 38px;
    padding: 6px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    color: var(--text-medium);
    touch-action: manipulation;
    -webkit-tap-highlight-color: var(--accent-glow);
}

/* Only apply hover effects on devices with hover capability (not touch screens) */
@media (hover: hover) and (pointer: fine) {
    .view-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
        color: var(--accent-primary);
        border-color: var(--accent-light);
    }
}

.view-btn:active {
    transform: scale(0.95);
}

.view-btn.active {
    background-color: var(--accent-primary);
    color: var(--white);
    border-color: var(--accent-primary);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.view-btn svg {
    width: 20px;
    height: 20px;
}

/* Color Selection */
.color-selection {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    max-width: 400px;
    width: 100%;
}

.color-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 14px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(44, 62, 80, 0.15);
    width: 100%;
}

.color-btn {
    padding: 0;
    background-color: transparent;
    border: 3px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: var(--accent-glow);
}

.color-swatch {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: block;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

/* Only apply hover effects on devices with hover capability (not touch screens) */
@media (hover: hover) and (pointer: fine) {
    .color-btn:hover .color-swatch {
        transform: scale(1.15);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    }
}

.color-btn:active {
    transform: scale(0.95);
}

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

.color-btn.active .color-swatch {
    box-shadow: 0 3px 10px var(--accent-glow);
}

/* Size Selection */
.size-selection {
    margin: 0;
    text-align: center;
    width: 100%;
}

/* Size Dropdown */
.size-dropdown {
    width: 100%;
    padding: 14px 16px;
    min-height: 52px;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px; /* Prevents iOS zoom on focus */
    font-weight: 500;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    background-color: var(--white);
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232c3e50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: var(--accent-glow);
}

/* Only apply hover effects on devices with hover capability */
@media (hover: hover) and (pointer: fine) {
    .size-dropdown:hover {
        border-color: var(--accent-primary);
    }
}

.size-dropdown:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px var(--accent-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .product-section {
        flex-direction: column;
        align-items: center;
    }

    .right-column {
        padding-top: 0;
    }

    .product-info {
        text-align: center;
    }

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

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

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

    .original-price {
        font-size: 1.75rem;
    }

    .discount-badge {
        right: -50px;
        font-size: 0.65rem;
        padding: 3px 6px;
    }

    .color-buttons {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
        padding: 12px 12px;
    }

    .color-btn {
        width: 44px;
        height: 44px;
    }

    .color-swatch {
        width: 34px;
        height: 34px;
    }

    .color-selection {
        margin-bottom: 20px;
    }
}

/* Image Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
    border-radius: 12px;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    line-height: 1;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
    padding: 10px;
    margin: -10px;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--accent-primary);
    transform: rotate(90deg);
}

.lightbox-close:active {
    color: var(--accent-dark);
}

/* Lightbox View Toggle Buttons */
.lightbox-view-toggle {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lightbox-view-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.lightbox-view-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.lightbox-view-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
}

.lightbox-view-btn.active:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

/* Mobile adjustments for lightbox */
@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 85vh;
    }

    .lightbox-view-toggle {
        bottom: 20px;
        padding: 6px 12px;
        gap: 10px;
    }

    .lightbox-view-btn {
        width: 44px;
        height: 44px;
    }

    .lightbox-view-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* Quantity Selection */
.quantity-selection {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 15px 0;
}

.quantity-btn {
    width: 48px;
    height: 48px;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    background-color: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-medium);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: var(--accent-glow);
    -webkit-touch-callout: none;
    user-select: none;
}

/* Only apply hover effects on devices with hover capability */
@media (hover: hover) and (pointer: fine) {
    .quantity-btn:hover {
        border-color: var(--accent-primary);
        background-color: var(--accent-primary);
        color: var(--white);
    }
}

.quantity-btn:active {
    transform: scale(0.95);
    border-color: var(--accent-primary);
    background-color: var(--accent-primary);
    color: var(--white);
}

.quantity-btn:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px var(--accent-light);
    background-color: var(--white);
    color: var(--accent-primary);
}

.quantity-input {
    width: 70px;
    height: 48px;
    text-align: center;
    font-family: 'DM Mono', monospace;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark);
    border: 2px solid var(--border-light);
    border-radius: 10px;
    outline: none;
    -moz-appearance: textfield;
    appearance: textfield;
    /* Touch optimization for mobile inputs */
    touch-action: manipulation;
}

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

.quantity-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px var(--accent-light);
}

/* Cart Actions Container */
.cart-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    width: 100%;
}

/* Add to Cart Button */
.add-to-cart-btn {
    flex: 1;
    padding: 16px 30px;
    min-height: 52px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-dark) 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 15px var(--accent-glow);
    touch-action: manipulation;
    -webkit-tap-highlight-color: var(--accent-glow);
    -webkit-touch-callout: none;
    user-select: none;
}

/* Cart Icon Button */
.cart-icon-btn {
    width: 52px;
    min-width: 52px;
    height: 52px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-medium);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    touch-action: manipulation;
    -webkit-tap-highlight-color: var(--accent-glow);
    -webkit-touch-callout: none;
    user-select: none;
}

.cart-icon-btn svg {
    width: 22px;
    height: 22px;
}

/* Only apply hover effects on devices with hover capability */
@media (hover: hover) and (pointer: fine) {
    .cart-icon-btn:hover {
        background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-dark) 100%);
        color: var(--white);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px var(--accent-glow);
    }
}

.cart-icon-btn:active {
    transform: scale(0.95);
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-dark) 100%);
    color: var(--white);
}

.cart-icon-btn.has-items {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-dark) 100%);
    color: var(--white);
    border-color: var(--accent-primary);
    box-shadow: 0 4px 15px var(--accent-glow);
}

/* Cart Icon Badge */
.cart-icon-badge {
    display: none;
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: var(--text-dark);
    color: var(--white);
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    line-height: 20px;
    text-align: center;
}

.cart-icon-btn {
    position: relative;
}

.cart-icon-badge.visible {
    display: block;
}

/* Only apply hover effects on devices with hover capability */
@media (hover: hover) and (pointer: fine) {
    .add-to-cart-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px var(--accent-glow);
    }
}

.add-to-cart-btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 10px var(--accent-glow);
}

.add-to-cart-btn.added {
    background: linear-gradient(135deg, var(--accent-dark) 0%, #141c24 100%);
}

/* Shopping Cart Section */
.cart-section {
    max-width: 800px;
    margin: 40px auto 0 auto;
    padding: 0 20px 40px 20px;
}

.cart-section hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent-primary), transparent);
}

.cart-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 25px 0 15px 0;
    text-align: left;
}

.cart-items {
    padding: 10px 0;
}

.cart-empty {
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    color: var(--text-light);
    font-style: italic;
    padding: 30px 20px;
    background: var(--accent-light);
    border-radius: 12px;
    border: 1px dashed var(--accent-primary);
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.cart-item-image {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: var(--accent-glow);
}

/* Only apply hover effects on devices with hover capability */
@media (hover: hover) and (pointer: fine) {
    .cart-item-image:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

.cart-item-image:active {
    transform: scale(0.98);
}

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

.cart-item-name {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.cart-item-options {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--text-medium);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-qty-btn {
    width: 36px;
    height: 36px;
    border: 2px solid var(--border-light);
    border-radius: 6px;
    background-color: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-medium);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: var(--accent-glow);
    -webkit-touch-callout: none;
    user-select: none;
}

/* Only apply hover effects on devices with hover capability */
@media (hover: hover) and (pointer: fine) {
    .cart-item-qty-btn:hover {
        border-color: var(--accent-primary);
        background-color: var(--accent-primary);
        color: var(--white);
    }
}

.cart-item-qty-btn:active {
    transform: scale(0.95);
    border-color: var(--accent-primary);
    background-color: var(--accent-primary);
    color: var(--white);
}

.cart-item-qty-btn:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px var(--accent-light);
    background-color: var(--white);
    color: var(--accent-primary);
}

.cart-item-qty {
    font-family: 'DM Mono', monospace;
    font-weight: 500;
    min-width: 24px;
    text-align: center;
    color: var(--text-dark);
}

.cart-item-price {
    font-family: 'DM Mono', monospace;
    font-weight: 500;
    color: var(--accent-primary);
    min-width: 70px;
    text-align: right;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 6px;
    transition: all 0.2s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(220, 53, 69, 0.2);
    -webkit-touch-callout: none;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Only apply hover effects on devices with hover capability */
@media (hover: hover) and (pointer: fine) {
    .cart-item-remove:hover {
        background-color: rgba(220, 53, 69, 0.1);
        transform: scale(1.1);
    }
}

.cart-item-remove:active {
    transform: scale(0.95);
    background-color: rgba(220, 53, 69, 0.15);
}

.cart-footer {
    padding: 25px 0;
    border-top: 2px solid var(--border-light);
    margin-top: 10px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

#cart-total-price {
    font-family: 'DM Mono', monospace;
    color: var(--accent-primary);
    font-size: 1.5rem;
    font-weight: 500;
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    min-height: 52px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, var(--text-dark) 0%, #1a252f 100%);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: var(--accent-glow);
    -webkit-touch-callout: none;
    user-select: none;
}

/* Only apply hover effects on devices with hover capability */
@media (hover: hover) and (pointer: fine) {
    .checkout-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px #5a6c7d;
    }
}

.checkout-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.checkout-btn:disabled {
    background: var(--border-light);
    color: var(--text-light);
    cursor: not-allowed;
    border-color: transparent;
}

/* Cart badge */
.cart-badge {
    background-color: var(--accent-primary);
    color: white;
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 8px;
}

/* Mobile adjustments for cart */
@media (max-width: 768px) {
    .cart-section {
        padding: 0 15px 30px 15px;
    }

    .cart-item {
        flex-wrap: wrap;
        padding: 20px 0;
        gap: 12px;
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
    }

    .cart-item-qty-btn {
        width: 40px;
        height: 40px;
    }

    .cart-item-remove {
        min-width: 48px;
        min-height: 48px;
        font-size: 1.8rem;
    }

    .quantity-btn {
        width: 52px;
        height: 52px;
    }

    .quantity-input {
        height: 52px;
    }
}

/* Touch-friendly global optimizations */
@media (pointer: coarse) {
    /* Ensure good tap targets on touch devices */
    .color-btn {
        width: 48px;
        height: 48px;
    }

    .color-swatch {
        width: 38px;
        height: 38px;
    }

    .view-btn {
        width: 44px;
        height: 44px;
    }

    .page-nav a {
        padding: 12px 16px;
        margin: 0 8px;
    }

    /* Ensure minimum touch target sizes */
    button, 
    a, 
    input[type="number"],
    select {
        min-height: 44px;
    }
}

/* Prevent text selection on interactive elements for cleaner touch experience */
button,
.color-btn,
.view-btn,
.quantity-btn,
.cart-item-qty-btn,
.cart-item-remove,
.add-to-cart-btn,
.checkout-btn {
    -webkit-user-select: none;
    user-select: none;
}

/* Smooth scrolling for better mobile experience */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Prevent pull-to-refresh on mobile when scrolling within lightbox */
.lightbox.active {
    overscroll-behavior: contain;
    touch-action: none;
}

.lightbox-content {
    touch-action: pinch-zoom;
}

/* Footer Styles */
.site-footer {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
    border-top: 1px solid var(--border-light);
}

.footer-content {
    text-align: center;
}

/* Social Media Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-medium);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
    color: var(--accent-primary);
    transform: scale(1.15);
}

.social-icon {
    width: 26px;
    height: 26px;
}

.footer-copyright {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    color: var(--text-medium);
    margin-bottom: 8px;
}

.footer-contact {
    font-family: 'DM Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-light);
}

.footer-contact a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}
