/* ========================================
   The Cannabotanica - Custom Store CSS
   Matching Shopify theme design exactly
======================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #000000;
    --bg-card: #ffffff;
    --text-dark: #000000;
    --text-secondary: #666666;
    --text-muted: #888888;
    --text-light: #ffffff;
    --border: #e0e0e0;
    --radius: 12px;
    --radius-sm: 6px;
    --shadow: 0 4px 20px rgba(0,0,0,0.2);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    background: #000;
}

/* Video - starts hidden, fades in from center when ready */
.video-background video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0;
    clip-path: circle(0% at 50% 50%);
    transition: none;
}

/* When video is ready, animate the clip-path from center outward */
.video-background.video-ready video {
    opacity: 1;
    clip-path: circle(150% at 50% 50%);
    transition: clip-path 1.5s ease-out, opacity 0.3s ease;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
}

/* Fallback for when video doesn't load */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
        url('/static/images/bg-cannabis.jpg') center/cover no-repeat;
    z-index: -3;
}

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

/* Container */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HEADER - Matching Shopify exactly
======================================== */

header {
    padding: 20px 0 30px;
    padding-top: max(20px, env(safe-area-inset-top, 20px));
    position: relative;
    z-index: 1000;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    height: 80px;
    width: auto;
    border-radius: 50%;
    filter: brightness(1.1);
    transition: all 0.3s ease;
    /* Glowing white ellipse effect */
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.5), 
        0 0 40px rgba(255, 255, 255, 0.3), 
        0 0 60px rgba(255, 255, 255, 0.2);
    animation: pulse-glow 3s ease-in-out infinite;
}

.logo:hover .logo-img {
    filter: brightness(1.2);
    transform: scale(1.05);
    box-shadow: 
        0 0 30px rgba(255, 255, 255, 0.7), 
        0 0 60px rgba(255, 255, 255, 0.5), 
        0 0 90px rgba(255, 255, 255, 0.3);
}

/* Logo Glow Animation */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(255, 255, 255, 0.5), 
            0 0 40px rgba(255, 255, 255, 0.3), 
            0 0 60px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 0 25px rgba(255, 255, 255, 0.7), 
            0 0 50px rgba(255, 255, 255, 0.5), 
            0 0 75px rgba(255, 255, 255, 0.3);
    }
}

.logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 400;
    font-style: italic;
    color: rgba(255,255,255,0.9);
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.logo-text .the {
    font-size: 0.75rem;
    display: block;
    letter-spacing: 3px;
    margin-bottom: -6px;
    font-style: italic;
    text-transform: none;
}

.cart-link {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 6px;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.6),
        0 0 20px rgba(255, 255, 255, 0.4),
        0 0 30px rgba(255, 255, 255, 0.2);
    animation: cart-glow 3s ease-in-out infinite;
}

@keyframes cart-glow {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.6),
            0 0 20px rgba(255, 255, 255, 0.4),
            0 0 30px rgba(255, 255, 255, 0.2);
    }
    50% {
        text-shadow: 
            0 0 15px rgba(255, 255, 255, 0.8),
            0 0 30px rgba(255, 255, 255, 0.6),
            0 0 45px rgba(255, 255, 255, 0.4);
    }
}

.cart-count {
    background: var(--text-light);
    color: var(--bg-dark);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

/* ========================================
   PAGE TITLE
======================================== */

.page-title {
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-light);
    margin: 0 0 30px;
}

/* ========================================
   CATEGORY GRID - Matching Shopify exactly
======================================== */

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 60px;
}

.category-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    display: block;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.category-image-wrapper {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--bg-card);
}

.category-image {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.category-info {
    padding: 16px 20px 20px;
    text-align: center;
    background: var(--bg-card);
}

.category-info h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}

.category-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* ========================================
   PRODUCT GRID - Matching Shopify exactly
======================================== */

.product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

.product-grid .product-card {
    flex: 0 1 calc(33.333% - 12px);
    max-width: calc(33.333% - 12px);
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: block;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.product-image-wrapper {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--bg-card);
}

.product-image {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

.product-info {
    padding: 16px 20px 20px;
    text-align: center;
    background: var(--bg-card);
}

.product-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-price {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ========================================
   PRODUCT DETAIL PAGE
======================================== */

.product-page {
    min-height: calc(100vh - 100px);
}

.product-page header {
    background: transparent;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 40px;
    max-width: 1140px;
    margin: 0 auto;
    background: var(--bg-card);
}

.product-gallery {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.product-main-image {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.product-main-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.product-main-image video,
.product-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

/* Product Media Gallery */
.product-media-gallery {
    width: 100%;
}

.product-main-media {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #f8f8f8;
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-main-media img,
.product-main-media video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-main-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Thumbnail strip below main media */
.media-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    justify-content: flex-start;
}

.media-thumbnail {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.media-thumbnail.active {
    border-color: var(--text-dark);
}

.media-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-thumbnail.video-thumb {
    position: relative;
}

.media-thumbnail.video-thumb::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.2rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Legacy support for old toggle method */
.product-media-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.product-media-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-media-container .product-thumbnail {
    display: none;
}

.product-media-container .thumbnail-label {
    display: none;
}

.product-details h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.category-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: #f0f0f0;
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.description strong {
    color: var(--text-dark);
    font-weight: 600;
}

.product-details .price {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 28px;
}

/* Variant Selector */
.variant-selector {
    margin-bottom: 20px;
}

.variant-selector label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.variant-select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

/* Price Tiers / Variant Dropdown (like Shopify) */
.price-tiers {
    margin-bottom: 24px;
}

.price-tiers h4,
.variant-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 10px;
}

/* Dropdown select style matching Shopify */
.tier-select,
.variant-select {
    width: 100%;
    padding: 14px 40px 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    background: white;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    color: var(--text-dark);
    transition: border-color 0.2s ease;
}

.tier-select:hover,
.variant-select:hover {
    border-color: var(--text-secondary);
}

.tier-select:focus,
.variant-select:focus {
    outline: none;
    border-color: var(--text-dark);
}

/* Selected price display */
.selected-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 16px 0 24px;
}

.selected-price .currency {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 4px;
}

/* Quantity input row */
.quantity-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.quantity-row label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    min-width: 60px;
}

/* Legacy tier card styles (hidden by default) */
.tier-options {
    display: none;
}

.tier-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.tier-option:hover {
    border-color: var(--text-dark);
}

.tier-option.selected {
    border-color: var(--text-dark);
    background: #f8f8f8;
}

.tier-info {
    display: flex;
    flex-direction: column;
}

.tier-qty {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
}

.tier-price {
    text-align: right;
}

.tier-price .price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.tier-price .per-unit {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Quantity Selector */
.quantity-selector {
    margin-bottom: 20px;
}

.quantity-selector label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.quantity-controls {
    display: inline-flex;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.quantity-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
}

.quantity-btn:hover {
    background: #f5f5f5;
}

.quantity-input {
    width: 60px;
    height: 44px;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    text-align: center;
    font-size: 1rem;
    font-family: inherit;
}

/* Add to Cart Buttons */
.add-to-cart-btn {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--text-dark);
    background: transparent;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    margin-bottom: 12px;
}

.add-to-cart-btn:hover {
    background: #f5f5f5;
}

.buy-now-btn {
    width: 100%;
    padding: 16px;
    border: none;
    background: var(--text-dark);
    color: var(--text-light);
    font-size: 0.95rem;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.buy-now-btn:hover {
    background: #333;
}

/* ========================================
   CART PAGE
======================================== */

.cart-page {
    min-height: calc(100vh - 100px);
    padding: 40px 20px;
}

.cart-page header {
    background: transparent;
}

.cart-page h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 40px;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.cart-empty {
    text-align: center;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius);
    width: 100%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* Container styling for empty cart - centered */
.cart-container-empty {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 45vh;
    padding: 20px;
}

/* Container styling for cart with items - grid layout */
.cart-container {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.cart-empty h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 16px;
}

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

.cart-empty .btn {
    display: inline-block;
    margin-top: 8px;
}

.cart-container {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

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

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto;
    gap: 20px;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.95);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: #f5f5f5;
    border-radius: var(--radius-sm);
}

.cart-item-info h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 4px;
}

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

.cart-item-price {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark);
}

.cart-item-remove {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 8px;
}

.cart-item-remove:hover {
    color: #e74c3c;
}

/* Cart Summary */
.cart-summary {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 24px;
    height: fit-content;
    background: rgba(255, 255, 255, 0.95);
}

.cart-summary h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.summary-row.total {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background: var(--text-dark);
    color: var(--text-light);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.checkout-btn:hover {
    background: #333;
}

/* ========================================
   CHECKOUT PAGE
======================================== */

.checkout-page {
    min-height: calc(100vh - 100px);
    padding: 40px 20px;
}

.checkout-page header {
    background: transparent;
}

.checkout-page h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 40px;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.checkout-form {
    max-width: 600px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255,255,255,0.1);
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-section {
    margin-bottom: 32px;
}

.form-section h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    letter-spacing: 0.5px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

/* Auto-resize textarea */
.form-group textarea {
    resize: none;
    overflow: hidden;
    min-height: 48px;
    line-height: 1.5;
}

/* Character counter */
.char-counter {
    text-align: right;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 6px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='rgba(255,255,255,0.6)' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group select option {
    background: #1a1a1a;
    color: var(--text-light);
}

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

/* Order Summary - Dark Theme */
.order-summary {
    background: rgba(255, 255, 255, 0.05);
    padding: 24px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.order-summary-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 16px 0;
    padding-top: 16px;
}

.order-summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Bitcoin Payment Button */
.checkout-form .buy-now-btn {
    width: 100%;
    margin-top: 28px;
    background: linear-gradient(135deg, #f7931a 0%, #e2820a 100%);
    color: #000;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 16px 24px;
    font-size: 1.05rem;
    border: none;
    box-shadow: 0 4px 15px rgba(247, 147, 26, 0.3);
    transition: all 0.3s ease;
}

.checkout-form .buy-now-btn:hover {
    background: linear-gradient(135deg, #ffb347 0%, #f7931a 100%);
    box-shadow: 0 6px 20px rgba(247, 147, 26, 0.4);
    transform: translateY(-2px);
}

/* ========================================
   PAYMENT MODAL
======================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.payment-modal {
    background: white;
    border-radius: var(--radius);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-body {
    padding: 24px;
}

.payment-amount {
    text-align: center;
    margin-bottom: 24px;
}

.payment-amount .usd {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
}

.payment-amount .btc {
    font-size: 1.2rem;
    color: #f7931a;
    font-family: monospace;
    margin-top: 8px;
}

.btc-address-box {
    background: #f5f5f5;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 24px;
}

.btc-address-box label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.btc-address {
    font-family: monospace;
    font-size: 0.85rem;
    word-break: break-all;
    color: var(--text-dark);
    background: white;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
}

.qr-code {
    text-align: center;
    margin: 24px 0;
}

.qr-code img {
    border-radius: var(--radius-sm);
}

.payment-status {
    text-align: center;
    padding: 16px;
    border-radius: var(--radius-sm);
    background: #fff3cd;
    color: #856404;
}

.payment-status.confirmed {
    background: #d4edda;
    color: #155724;
}

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

footer {
    padding: 40px 0;
    text-align: center;
    margin-top: auto;
}

footer p {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

/* ========================================
   UTILITIES
======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--text-dark);
    color: var(--text-light);
    border: none;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-dark);
    color: var(--text-dark);
}

.loading {
    display: flex;
    justify-content: center;
    padding: 40px;
}

.loading::after {
    content: '';
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: white;
    color: var(--text-dark);
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    animation: slideIn 0.3s ease;
}

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

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

@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-grid .product-card {
        flex: 0 1 calc(50% - 8px);
        max-width: calc(50% - 8px);
    }
    
    .product-detail {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cart-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 0 20px;
        padding-top: max(15px, env(safe-area-inset-top, 15px));
    }
    
    header .container {
        padding: 0 15px;
    }
    
    .logo-img {
        height: 55px;
    }
    
    .cart-link {
        right: 15px;
        font-size: 1.1rem;
    }
    
    .page-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    /* Mobile: Single column categories with larger images */
    .category-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 12px;
    }
    
    .category-card {
        display: grid;
        grid-template-columns: 50% 1fr;
        align-items: center;
        min-height: 140px;
    }
    
    .category-image-wrapper {
        width: 100%;
        height: 100%;
        aspect-ratio: 1;
        flex-shrink: 0;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    
    .category-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        max-width: none;
        max-height: none;
        transform: scale(1.6);
    }
    
    .category-info {
        flex: 1;
        text-align: left;
        padding: 20px 24px;
    }
    
    .category-info h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    /* Mobile: 1-column product grid */
    .product-grid {
        gap: 16px;
        padding: 0 16px;
    }
    
    .product-grid .product-card {
        flex: 0 1 100%;
        max-width: 100%;
    }
    
    .product-image-wrapper {
        padding: 15px;
    }
    
    .product-info {
        padding: 10px 12px 14px;
    }
    
    .product-name {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .product-price {
        font-size: 0.85rem;
    }
    
    /* Mobile: Product Detail */
    .product-detail {
        padding: 0;
        gap: 0;
        border-radius: 0;
    }
    
    .product-gallery {
        width: 100%;
    }
    
    .product-main-image {
        max-width: 100%;
        border-radius: 0;
        aspect-ratio: 1;
    }
    
    .product-details {
        padding: 20px;
    }
    
    .product-details h1 {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }
    
    .category-tag {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
    
    /* Mobile: Cart */
    .cart-page {
        padding: 20px 15px;
    }
    
    .cart-page h1 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
    .cart-item {
        grid-template-columns: 70px 1fr auto;
        gap: 12px;
        padding: 15px;
    }
    
    .cart-item-image {
        width: 70px;
        height: 70px;
    }
    
    .cart-item-info h3 {
        font-size: 0.9rem;
    }
    
    .cart-item-tier {
        font-size: 0.8rem;
    }
    
    .cart-item-price {
        font-size: 0.95rem;
    }
    
    .cart-item-remove {
        position: absolute;
        top: 10px;
        right: 10px;
    }
    
    .cart-item {
        position: relative;
    }
    
    .cart-summary {
        padding: 20px;
    }
    
    /* Mobile: Checkout */
    .checkout-page {
        padding: 20px 15px;
    }
    
    .checkout-page h1 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
    .checkout-form {
        padding: 20px;
    }
    
    .form-section {
        margin-bottom: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .logo-img {
        height: 50px;
    }
    
    .category-card {
        grid-template-columns: 40% 1fr;
    }
    
    .category-image-wrapper {
        padding: 14px;
    }
    
    .category-info h3 {
        font-size: 1rem;
    }
    
    .category-count {
        font-size: 0.85rem;
    }
    
    .product-name {
        font-size: 0.75rem;
    }
    
    .product-price {
        font-size: 0.8rem;
    }
    
    .product-details h1 {
        font-size: 1.4rem;
    }
    
    .tier-option {
        padding: 12px 14px;
    }
    
    .tier-qty {
        font-size: 0.95rem;
    }
    
    .tier-price .price {
        font-size: 1rem;
    }
    
    .payment-modal {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .btc-address {
        font-size: 0.75rem;
    }
}
