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

body {
    font-family: 'Courier New', monospace;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.limited-banner {
    background: #333;
    color: white;
    text-align: center;
    padding: 8px 0;
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    border: 1px solid #333;
}

.limited-banner p {
    margin: 0;
    font-weight: normal;
}

header {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

h1 {
    font-size: 3rem;
    font-weight: normal;
    color: #666;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.2rem;
    color: #999;
    font-style: italic;
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading {
    text-align: center;
}

.dot {
    width: 20px;
    height: 20px;
    background-color: #333;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.product-container {
    width: 100%;
    max-width: 800px;
}

.product {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid #ddd;
}

.product-image img {
    width: 100%;
    height: auto;
    border: 1px solid #eee;
}

.secondary-image {
    width: 100%;
    height: auto;
    border: 1px solid #eee;
    margin-top: 10px;
}

.image-selector {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.image-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s ease;
}

.image-dot.active {
    background: #333;
}

.image-dot:hover {
    background: #666;
}

.product-info h2 {
    font-size: 2rem;
    font-weight: normal;
    margin-bottom: 20px;
    color: #333;
}

.product-info p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-selector {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.product-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: white;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 120px;
    color: #333;
}

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

.product-btn.active {
    background: #333;
    color: white;
    border-color: #333;
}

.color-selector {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.color-selector button {
    font-size: 0.8rem;
}

.color-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: white;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 120px;
    min-width: 80px;
}

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

.color-btn.active {
    background: #333;
    color: white;
    border-color: #333;
}

.dot-size-selector {
    margin-bottom: 20px;
}

.dot-size-selector label {
    display: block;
    font-size: 1rem;
    color: #333;
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
}

.slider-container {
    position: relative;
    /* Make the entire container touch-friendly */
    min-height: 60px;
    display: flex;
    align-items: center;
}

#dot-size-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    margin: 0;
    padding: 0;
    /* Mobile touch improvements */
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
}

#dot-size-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: var(--thumb-size, 12px);
    height: var(--thumb-size, 12px);
    border-radius: 50%;
    background: #333;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

#dot-size-slider::-moz-range-thumb {
    width: var(--thumb-size, 12px);
    height: var(--thumb-size, 12px);
    border-radius: 50%;
    background: #333;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

#current-dot-size-label {
    font-weight: bold;
    color: #333;
}

.size-selector {
    margin-bottom: 20px;
}

.size-selector label {
    display: block;
    font-size: 1rem;
    color: #333;
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
}

.size-selector select {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    border: 1px solid #ddd;
    background-color: white;
    color: #333;
    cursor: pointer;
}

.size-selector select:focus {
    outline: none;
    border-color: #333;
}

.price {
    margin-bottom: 30px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price span {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
}

.shipping-note {
    font-size: 0.8rem;
    color: #666;
    font-family: 'Courier New', monospace;
    margin-top: 5px;
    font-style: italic;
    opacity: 0.8;
}

.limited-edition {
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px;
    margin: 15px 0;
    text-align: left;
}

.limited-edition p {
    margin: 0;
    font-size: 0.85rem;
    color: #555;
    font-family: 'Courier New', monospace;
    font-style: italic;
    line-height: 1.4;
}

.shipping-info {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px;
    margin: 15px 0;
    text-align: left;
}

.shipping-info p {
    margin: 5px 0;
    font-size: 0.85rem;
    color: #666;
    font-family: 'Courier New', monospace;
    line-height: 1.4;
}

.product-details {
    margin: 15px 0;
}

.details-buttons {
    display: flex;
    gap: 10px;
    justify-content: left;
    align-items: center;
    flex-wrap: wrap;
}

.details-btn {
    background: none;
    border: 1px solid #333;
    color: #333;
    padding: 8px 12px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    transition: all 0.3s ease;
    height: 32px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.details-btn:hover {
    background: #333;
    color: #fff;
}

.size-chart-btn {
    background: none;
    border: 1px solid #333;
    color: #333;
    padding: 8px 12px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    box-sizing: border-box;
}

.size-chart-btn:hover {
    background: #333;
    color: #fff;
    text-decoration: none;
}

.details-content {
    margin-top: 10px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    font-size: 12px;
    line-height: 1.4;
    color: #555;
}

.details-content p {
    margin: 5px 0;
}

.buy-btn {
    background: #333;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.buy-btn:hover {
    background: #555;
}

.buy-btn:active {
    background: #111;
}

.error {
    text-align: center;
    color: #999;
    font-size: 1.2rem;
}

footer {
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid #ddd;
    color: #999;
    font-size: 0.9rem;
}

.business-info {
    font-size: 0.8rem;
    color: #888;
    margin-top: 10px;
}

/* Exit Intent Popup */
.exit-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exit-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 400px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.exit-content h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
    color: #333;
}

.exit-content p {
    margin: 10px 0;
    color: #666;
    line-height: 1.4;
}

.exit-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.exit-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.exit-stay {
    background: #333;
    color: white;
}

.exit-stay:hover {
    background: #555;
}

.exit-leave {
    background: #f0f0f0;
    color: #333;
}

.exit-leave:hover {
    background: #e0e0e0;
}

/* Size Chart Modal */
.size-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.size-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.size-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.size-header h3 {
    margin: 0;
    color: #333;
}

.size-close {
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.size-close:hover {
    color: #333;
}

.size-table table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.size-table th,
.size-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.size-table th {
    background: #f8f8f8;
    font-weight: bold;
    color: #333;
}

.size-table td {
    color: #666;
}

.size-note {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

.size-image {
    text-align: center;
    margin-bottom: 20px;
}

.size-image img {
    max-width: 100%;
    height: auto;
}

/* Chat widget */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chat-toggle {
    background: #333;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.chat-toggle:hover {
    background: #555;
    transform: translateY(-2px);
}

.chat-window {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 300px;
    height: 400px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: #f5f5f5;
    padding: 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px 10px 0 0;
}

.chat-header h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.chat-close {
    cursor: pointer;
    font-size: 20px;
    color: #666;
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #fafafa;
}

.chat-message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 10px;
    max-width: 80%;
}

.chat-message.bot {
    background: #e9e9e9;
    margin-right: auto;
}

.chat-message.user {
    background: #333;
    color: white;
    margin-left: auto;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-input input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    width: 100%;
    box-sizing: border-box;
}

.chat-input-row {
    display: flex;
    gap: 10px;
}

.chat-input-row input {
    flex: 1;
}

.chat-input button {
    background: #333;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    align-self: flex-end;
    width: 80px;
}

.chat-input button:hover {
    background: #555;
}

.chat-hours {
    padding: 10px 15px;
    background: #f0f0f0;
    border-top: 1px solid #ddd;
    text-align: center;
    border-radius: 0 0 10px 10px;
}

.chat-hours small {
    color: #666;
    font-size: 11px;
}

/* Hide mobile line break on desktop */
footer .mobile-break {
    display: none;
}

/* Entrance animation */
.entrance-dot {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 50vw;
    height: 50vw;
    background-color: #333;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    opacity: 1;
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.entrance-dot.animate {
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.1);
}

/* Cookie consent banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding: 15px;
    z-index: 10000;
    font-size: 0.9rem;
    color: #666;
}

.cookie-banner p {
    margin: 0 0 10px 0;
    text-align: center;
}

.cookie-banner a {
    color: #333;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.cookie-btn {
    background: #333;
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.cookie-btn:hover {
    background: #555;
}

/* Privacy page */
.privacy-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.privacy-content h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}

.privacy-content h3 {
    font-size: 1.2rem;
    margin: 20px 0 10px 0;
    color: #333;
}

.privacy-content ul,
.privacy-content ol {
    margin: 10px 0;
    padding-left: 20px;
}

.privacy-content li {
    margin: 5px 0;
    color: #666;
}

.privacy-content p {
    margin: 10px 0;
    color: #666;
    line-height: 1.5;
}

.last-updated {
    font-style: italic;
    color: #999;
    font-size: 0.9rem;
}

/* Checkout form */
.checkout-form {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    background: #f9f9f9;
}

.checkout-form h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.3rem;
}

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

.form-row {
    display: flex;
    gap: 10px;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #333;
}

.checkout-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.checkout-btn {
    padding: 10px 20px;
    border: 1px solid #333;
    background: white;
    color: #333;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

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

.checkout-btn.primary {
    background: #333;
    color: white;
}

.checkout-btn.primary:hover {
    background: #555;
}

/* Stripe Payment Styles */
.payment-section {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.payment-section h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: normal;
}

.card-element {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    margin-bottom: 10px;
}

.card-errors {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    min-height: 20px;
}

.card-errors:empty {
    display: none;
}

/* Order confirmation */
.order-confirmation {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    text-align: center;
}

.order-confirmation h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.3rem;
}

.order-confirmation p {
    margin: 10px 0;
    color: #666;
    font-size: 0.9rem;
}

.order-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

/* Image modal */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    padding: 20px;
    border-radius: 0;
    border: 1px solid #ddd;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    display: block;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #333;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Courier New', monospace;
}


.close:hover {
    color: #000;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .container {
        padding: 10px;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    h1 {
        font-size: 2rem;
        word-wrap: break-word;
    }
    
    .product {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .product-image img {
        width: 65%;
        height: auto;
        margin: 0 auto;
        display: block;
        max-width: 100%;
    }
    
    .product-info h2 {
        font-size: 1.5rem;
        word-wrap: break-word;
    }
    
    .price {
        white-space: normal;
        text-align: center;
    }
    
    .price span {
        font-size: 2rem;
        display: block;
    }
    
    .shipping-note {
        text-align: center;
        word-wrap: break-word;
    }
    
    .limited-edition {
        margin: 10px 0;
        padding: 10px;
    }
    
    .limited-edition p {
        font-size: 0.8rem;
        word-wrap: break-word;
    }
    
    .product-selector {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .color-selector {
        justify-content: center;
    }
    
    .product-btn {
        min-width: 80px;
        margin: 5px;
    }
    
    .color-btn {
        min-width: 80px;
        margin: 5px;
    }
    
    /* Push content up when cookie banner is visible */
    body.cookie-banner-visible main {
        padding-bottom: 120px;
    }
    
    /* Mobile footer with line breaks */
    footer .mobile-break {
        display: block;
    }
    
    /* Mobile chat positioning - avoid covering buy button and footer */
    .chat-widget {
        bottom: 80px; /* Move up to avoid footer */
        right: 10px; /* Move in from edge */
    }
    
    .chat-window {
        width: 280px; /* Slightly smaller on mobile */
        height: 380px; /* Increased height to accommodate email field */
        bottom: 70px; /* Adjust position */
    }
    
    .chat-input {
        padding: 12px; /* Slightly less padding on mobile */
    }
    
    .chat-input input {
        font-size: 11px; /* Slightly smaller text on mobile */
    }
    
    .chat-toggle {
        font-size: 12px;
        padding: 10px 14px;
    }
    
    /* Center details buttons on mobile */
    .details-buttons {
        justify-content: center;
    }
    
    /* Mobile banner adjustments */
    .limited-banner {
        font-size: 0.8rem;
        padding: 6px 0;
    }
    
    /* Mobile slider improvements */
    #dot-size-slider {
        height: 12px; /* Much thicker for easier touch */
        margin: 15px 0; /* More touch area */
        /* Improve touch responsiveness */
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        /* Ensure slider is above other elements */
        position: relative;
        z-index: 10;
    }
    
    #dot-size-slider::-webkit-slider-thumb {
        width: calc(var(--thumb-size, 12px) + 16px); /* Much larger touch target */
        height: calc(var(--thumb-size, 12px) + 16px);
        border: 4px solid white; /* Thicker border for visibility */
        box-shadow: 0 4px 8px rgba(0,0,0,0.4); /* More prominent shadow */
        /* Ensure thumb is above everything */
        position: relative;
        z-index: 11;
    }
    
    #dot-size-slider::-moz-range-thumb {
        width: calc(var(--thumb-size, 12px) + 16px); /* Much larger touch target */
        height: calc(var(--thumb-size, 12px) + 16px);
        border: 4px solid white; /* Thicker border for visibility */
        box-shadow: 0 4px 8px rgba(0,0,0,0.4); /* More prominent shadow */
        /* Ensure thumb is above everything */
        position: relative;
        z-index: 11;
    }
    
    .dot-size-selector label {
        font-size: 1.1rem; /* Slightly larger text on mobile */
        margin-bottom: 12px; /* More spacing */
    }
    
    #current-dot-size-label {
        font-size: 1.2rem; /* Larger active label */
    }
    
    /* Increase touch area for slider container on mobile */
    .slider-container {
        padding: 25px 0; /* Much more vertical touch area */
        margin: 10px 0;
        /* Ensure container doesn't interfere with touch */
        position: relative;
        z-index: 9;
    }
}
