@import '../theme.css';

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    color: var(--text);
    font-family: Times, serif;
    box-sizing: border-box;
}

body {
    /* border : 3px solid #fc3ed9; */
    margin: 2px;
    background-image: url("background.png") ;
    height: 100%;
    /* background-color: transparent; */
    background-size: 100% 100%;
    background-attachment: scroll;
}


a {
    text-align: center;
    color: inherit;
    text-decoration: none;
}


.container {
    display: flex;
    flex-direction: column;
    height: 100vh; /* Full viewport height */
}

header {
    background-color: #ff9bed;
    border : 3px solid #fc3ed9;
}


.piano-gif {
    border: 4px solid #000;
}

.header h1 {
    padding: 10px;
    text-align: center;
    font-size: 72px;
    letter-spacing: 2px;
    transform: scale(1.25, 0.25);
}

.banner a {
    width: 100%;
}

/* Banner Styling */
.banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.banner img:first-child {
    width: 100%;
    height: auto;
}

.banner .piano-gif {
    width: 100%;
    height: auto;
}

/* Main Content Layout */
.main-content {
    border : 3px solid #fc3ed9;
    display: flex;
    flex: 1;
    flex-wrap: wrap; /* Allows wrapping when space is limited */
}

/* Symbol Styling */
symbol {
    text-align: center;
    font-size: 120px;
}

/* Content Area Styling */
.content {
    flex: 1;
    padding: 20px 20px 60px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    align-items: start; /* Prevent cards from stretching */
    justify-items: center; /* Center odd items */
    position: relative;
}

/* Decorative vintage divider at bottom */
.content::before {
    content: '';
    position: absolute;
    bottom: 25px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(to right,
        transparent 0%,
        #000 20%,
        #000 45%,
        transparent 48%,
        transparent 52%,
        #000 55%,
        #000 80%,
        transparent 100%
    );
}

/* Decorative ornament in center of divider */
.content::after {
    content: '❦';
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 32px;
    color: #000;
    padding: 0 15px;
}

/* Image Styling in Content */
.content img {
    width: 100%;
    height: auto;
    border: var(--border-size) solid var(--border);
}

/* Marquee */
.marquee {

    margin : 10px 0 10px 0;
    height: 25px;
    width: 100%;
    overflow: hidden;
    position: relative;
    border: 3px solid #000;
    border-left: 3px solid #000;
    border-right: 3px solid #000;
}

.marquee div {
    display: flex;
    gap: 20px;
    background-color: rgb(255, 255, 255);
    position: absolute;
    animation: marquee 255s linear infinite;
}

.marquee span {
    white-space: nowrap;
}

/* Marquee Animation */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.marquee span::after {
    content: " ♪";
    margin-left: 10px;
    color: var(--border);
}

/* Sidebar Styling */
.sidebar {
    /* background-color: var(--secondary); */
    width: 300px;
    padding: 20px;
    flex-shrink: 0; /* Prevents shrinking */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
}

/* Sidebar Links */
.sidebar a {
    display: block;
    margin: 10px 0;
}

/* Icons Grid */
.icons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 20px 0;
}

.icons button,
.icons a {
    margin: 0;
}

.icons img {
    width: 100%;
    height: auto;
    display: block;
}

/* Side Banner */
.side-banner {
    width: 100%;
    height: auto;
    margin-top: 20px;
}

/* Sidebar Button */
.sidebar-btn {
    font-weight: bold;
    font-size: larger;
    padding: 5px;
    background-color: var(--button);
    color: var(--text);
    margin-bottom: 10px;
    text-align: center;
    line-height: 20px;
    border: var(--button-border-size) solid var(--button-border);
    box-shadow: 2px 2px 0 var(--shadow);
    user-select: none;
    cursor: pointer;
}

/* Hover and Active States for Sidebar Button */
.sidebar-btn:hover {
    background-color: var(--button-hover);
    color: var(--text);
}

.sidebar-btn:active {
    background-color: var(--button-active);
    color: var(--text);
    border-color: var(--button-border);
    box-shadow: none;
}

/* Cart Button */
.header-content {
    position: relative;
    width: 100%;
}

.cart-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--button);
    border: 2px solid var(--border);
    padding: 10px 15px;
    cursor: pointer;
    font-family: Times, serif;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 2px 2px 0 var(--shadow);
}

.cart-button:hover {
    background-color: var(--button-hover);
}

.cart-button:active {
    box-shadow: none;
    transform: translate(2px, 2px);
}

.cart-icon {
    font-size: 20px;
}

.cart-count {
    background-color: var(--primary);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Product Cards */
.product-card {
    border: 2px solid var(--border);
    background-color: var(--secondary);
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 400px; /* Limit card width */
    height: auto; /* Let content determine height */
}

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

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: fill;
    border-bottom: 2px solid var(--border);
}

.product-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.product-info h3 {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.product-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
    margin: 5px 0;
}

.add-to-cart-btn {
    background-color: var(--button);
    color: var(--text);
    border: 2px solid var(--button-border);
    padding: 10px;
    cursor: pointer;
    font-family: Times, serif;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-top: auto;
    box-shadow: 2px 2px 0 var(--shadow);
}

.add-to-cart-btn:hover {
    background-color: var(--button-hover);
}

.add-to-cart-btn:active {
    background-color: var(--button-active);
    box-shadow: none;
    transform: translate(2px, 2px);
}

/* Active Filter */
.sidebar-btn.active {
    background-color: var(--primary);
    font-weight: bold;
}

/* Notification Animations */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

/* Back Button */
.back-button {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--button);
    border: 2px solid var(--border);
    padding: 10px 20px;
    cursor: pointer;
    font-family: Times, serif;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 2px 2px 0 var(--shadow);
}

.back-button:hover {
    background-color: var(--button-hover);
}

/* Cart Page */
.cart-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.cart-container h1 {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
    letter-spacing: 2px;
    background-color: var(--primary);
    padding: 15px 0;
    margin: 0 0 30px 0;
    border: 2px solid var(--border);
}

.cart-items {
    margin-bottom: 30px;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr 150px 100px 50px;
    gap: 20px;
    align-items: center;
    padding: 20px;
    background: var(--secondary);
    border: 2px solid var(--border);
    margin-bottom: 15px;
}

.cart-item-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 2px solid var(--border);
}

.cart-item-details h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.cart-item-details .variant-info {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

.cart-item-details .item-price {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary);
    margin-top: 5px;
}

.cart-item-quantity label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
}

.cart-item-quantity input {
    width: 60px;
    padding: 8px;
    border: 2px solid var(--border);
    font-family: Times, serif;
    font-size: 16px;
    text-align: center;
}

.cart-item-total {
    font-size: 20px;
    font-weight: bold;
    text-align: right;
}

.cart-item-remove {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #e74c3c;
    padding: 5px;
}

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

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

.cart-empty p {
    font-size: 24px;
    margin-bottom: 30px;
    color: #666;
}

.continue-shopping {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--button);
    color: var(--text);
    text-decoration: none;
    border: 2px solid var(--border);
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 2px 2px 0 var(--shadow);
}

.continue-shopping:hover {
    background-color: var(--button-hover);
}

.cart-summary {
    border: 2px solid var(--border);
    padding: 30px;
    background: var(--secondary);
    margin-left: auto;
    width: 100%;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 16px;
}

.summary-row.total {
    font-size: 24px;
    font-weight: bold;
    padding-top: 15px;
    border-top: 2px solid var(--border);
    margin-top: 15px;
}

.checkout-button {
    width: 100%;
    padding: 15px;
    background-color: var(--primary);
    color: var(--text);
    border: 2px solid var(--border);
    font-family: Times, serif;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 2px 2px 0 var(--shadow);
}

.checkout-button:hover {
    background-color: var(--button-hover);
}

.checkout-button:active {
    box-shadow: none;
    transform: translate(2px, 2px);
}

/* Checkout Page */
.checkout-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.checkout-container h1 {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
    letter-spacing: 2px;
}

.checkout-form {
    background: var(--secondary);
    border: 2px solid var(--border);
    padding: 30px;
    margin-bottom: 30px;
}

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

.form-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

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

.form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-row input,
.form-row select {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--border);
    font-family: Times, serif;
    font-size: 16px;
    background: white;
}

.form-row input:focus,
.form-row select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-row.half {
    display: inline-block;
    width: calc(50% - 10px);
}

.form-row.half:nth-child(odd) {
    margin-right: 20px;
}

/* Stripe Payment Element Container */
#payment-element {
    padding: 0;
    background: transparent;
}

/* Override Stripe's default pink color and style tabs */
#payment-element .p-TabLabel {
    font-family: Times, serif !important;
}

#payment-element .p-Tab {
    border: 2px solid var(--border) !important;
    background: white !important;
    margin-right: 10px !important;
    margin-bottom: 10px !important;
    padding: 10px 15px !important;
    border-radius: 0 !important;
}

#payment-element .p-Tab:hover {
    background: #f5f5f5 !important;
}

#payment-element .p-Tab--selected {
    background: white !important;
    border-color: #000 !important;
    border-width: 3px !important;
}

/* Style the payment method panels */
#payment-element [role="tabpanel"] {
    border: 2px solid var(--border) !important;
    background: white !important;
    padding: 20px !important;
    margin-top: 15px !important;
    border-radius: 0 !important;
}

/* Style input fields within payment element */
#payment-element input,
#payment-element .p-Input {
    border: 2px solid var(--border) !important;
    border-radius: 0 !important;
    font-family: Times, serif !important;
}

#payment-element input:focus,
#payment-element .p-Input:focus {
    border-color: #000 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Remove pink/primary color from Stripe elements */
#payment-element .p-Tab--selected .p-TabIcon,
#payment-element .p-Tab--selected .p-TabLabel {
    color: #000 !important;
    fill: #000 !important;
}

/* Style the additional payment methods dropdown */
#payment-element .p-AdditionalPaymentMethods {
    margin-left: 10px !important;
}

#payment-element .p-AdditionalPaymentMethods-menu {
    border: 2px solid var(--border) !important;
    background: white !important;
    font-family: Times, serif !important;
}

.order-summary {
    background: var(--secondary);
    border: 2px solid var(--border);
    padding: 20px;
    margin-bottom: 20px;
}

.order-summary h2 {
    font-size: 20px;
    margin-bottom: 15px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

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

.place-order-button {
    width: 100%;
    padding: 18px;
    background-color: var(--primary);
    color: var(--text);
    border: 2px solid var(--border);
    font-family: Times, serif;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 2px 2px 0 var(--shadow);
}

.place-order-button:hover:not(:disabled) {
    background-color: var(--button-hover);
}

.place-order-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Desktop Layout */
@media (min-width: 769px) {
    header {
        width: 100%; /* Full width header */
    }

    .banner {
        width: 100% !important; /* Ensure full width on desktop */
        max-width: 100% !important;
    }

    .banner img {
        width: 100% !important; /* Full width banner images */
        max-width: 100% !important;
        display: block; /* Remove any inline spacing */
    }

    .banner img:first-child,
    .banner .piano-gif {
        width: 100% !important;
        max-width: none !important;
    }
}

/* Responsive Layout */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column; /* Stack sidebar and content vertically */
    }

    .sidebar {
        width: 100%; /* Full width for sidebar in stacked layout */
        order: 2; /* Sidebar appears below content on mobile */
        padding: 10px; /* Smaller padding */
    }

    .sidebar-btn {
        font-size: 14px; /* Smaller font size */
        padding: 8px; /* Reduced padding */
        margin-bottom: 8px; /* Reduced margin */
    }

    .side-banner {
        max-width: 120px; /* Smaller side banner on mobile */
        margin: 10px auto; /* Center it */
    }

    .content {
        order: 1; /* Products appear first on mobile */
        grid-template-columns: 1fr; /* Single column layout for smaller screens */
    }

    .product-card img {
        height: 250px;
    }

    .cart-button {
        top: 5px;
        right: 5px;
        padding: 8px 12px;
        font-size: 14px;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto auto auto;
    }

    .cart-item-image {
        grid-row: 1 / 3;
    }

    .cart-item-details {
        grid-column: 2;
    }

    .cart-item-quantity,
    .cart-item-total {
        grid-column: 2;
    }

    .cart-item-remove {
        grid-column: 2;
        text-align: right;
    }

    .form-row.half {
        width: 100%;
        margin-right: 0;
    }
}

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

.variant-modal-content {
    background: var(--bg, #fffef5);
    border: 3px solid var(--border, #000);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
}

.variant-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.variant-image-container {
    margin: 1rem 0;
    text-align: center;
}

.variant-image-container img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    border: 2px solid var(--border, #000);
}

.variant-selector {
    margin: 2rem 0;
}

.variant-group {
    margin-bottom: 1.5rem;
}

.variant-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-transform: capitalize;
}

.variant-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.variant-option-btn {
    border: 2px solid var(--border, #000);
    background: var(--bg, #fffef5);
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 80px;
}

.variant-option-btn img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 1px solid var(--border, #000);
}

.variant-option-btn:hover {
    background: var(--button-hover, #ffb3f7);
    transform: translateY(-2px);
}

.variant-option-btn.selected {
    background: var(--button, #ff9bed);
    box-shadow: 3px 3px 0 var(--shadow, #000);
}

.variant-info {
    margin: 1.5rem 0;
    text-align: center;
}

.variant-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary, #fd86ea);
}

.variant-stock {
    margin-top: 0.5rem;
    font-size: 14px;
}

.variant-stock.in-stock {
    color: green;
}

.variant-stock.out-of-stock {
    color: red;
}

#add-variant-to-cart {
    width: 100%;
    margin-top: 1rem;
}

#add-variant-to-cart:disabled {
    background: var(--button-disabled, #ccc);
    cursor: not-allowed;
}

/* ==========================================
   PRODUCT DETAIL PAGE
   ========================================== */
.product-detail-container {
    display: flex;
    gap: 40px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.product-detail-gallery {
    flex: 1;
    min-width: 300px;
}

.product-detail-gallery img {
    width: 100%;
    height: auto;
    border: 2px solid var(--border);
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.product-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid var(--border);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.product-thumbnails img:hover,
.product-thumbnails img.active {
    opacity: 1;
    border-color: var(--primary);
}

.product-detail-info,
.product-info-detail {
    flex: 1;
    min-width: 300px;
    background: white;
    border: 3px solid var(--border);
    padding: 25px;
    box-shadow: 3px 3px 0 var(--shadow);
}

.product-detail-info h1,
.product-info-detail h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

.product-detail-info p,
.product-info-detail p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-detail-price {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 25px;
}

.stock-status {
    font-size: 16px;
    margin: 15px 0;
    font-weight: bold;
}

.stock-status.in-stock {
    color: green;
}

.stock-status.out-of-stock {
    color: red;
}

.loading-state,
.error-state {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
}

.error-state {
    color: #e74c3c;
}

.error-state .sidebar-btn {
    display: inline-block;
    margin-top: 20px;
}

/* Variant selector on product page */
#variant-selector-container {
    margin-bottom: 25px;
}

#variant-selector-container .variant-group {
    margin-bottom: 20px;
}

#variant-selector-container .variant-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 16px;
    text-transform: capitalize;
}

#variant-selector-container .variant-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .product-detail-container {
        flex-direction: column;
        padding: 20px 10px;
    }

    .product-detail-info h1 {
        font-size: 24px;
    }

    .product-detail-price {
        font-size: 22px;
    }

    /* Fix image cutoff on mobile */
    .product-detail-gallery {
        max-width: 100%;
        overflow: hidden;
    }

    .product-detail-gallery img,
    #main-product-image {
        max-width: 100%;
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* Touch-friendly swipe gallery */
    .variant-thumbnails {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
    }

    .variant-thumbnail {
        scroll-snap-align: start;
        flex-shrink: 0;
    }

    /* Sticky add to cart button on mobile */
    #add-to-cart-btn {
        position: sticky;
        bottom: 10px;
        width: calc(100% - 20px);
        margin: 20px 10px 10px 10px;
        z-index: 100;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    }
}

/* ============================================ */
/* 4K AND LARGE SCREEN SUPPORT (2560px+)       */
/* ============================================ */
@media (min-width: 2560px) {
    body {
        font-size: 24px;
    }

    .sidebar {
        width: 500px;
        padding: 40px;
    }

    .sidebar-btn {
        font-size: 32px;
        padding: 15px;
        margin-bottom: 20px;
    }

    .banner img {
        height: 400px;
    }

    .piano-gif {
        height: 100px;
    }

    .marquee {
        height: 50px;
        font-size: 28px;
    }

    .content {
        grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
        gap: 40px;
        padding: 40px;
    }

    .content::after {
        font-size: 64px;
        bottom: 24px;
    }

    .content::before {
        bottom: 50px;
    }

    .cart-button {
        padding: 20px 30px;
        font-size: 28px;
        gap: 16px;
        top: 20px;
        right: 20px;
    }

    .cart-count {
        font-size: 20px;
        min-width: 36px;
        height: 36px;
        line-height: 36px;
    }

    /* Product cards */
    .product-card {
        font-size: 24px;
    }

    .product-card h3 {
        font-size: 32px;
    }

    .product-card .price {
        font-size: 28px;
    }

    /* Product detail page scaling */
    .product-detail-container {
        padding: 40px;
        gap: 60px;
    }

    .product-detail-info h1 {
        font-size: 56px;
    }

    .product-detail-price {
        font-size: 48px;
    }

    .product-detail-description {
        font-size: 24px;
        line-height: 1.8;
    }

    .variant-group label {
        font-size: 26px;
    }

    .variant-option {
        padding: 16px 24px;
        font-size: 24px;
    }

    #add-to-cart-btn {
        font-size: 28px;
        padding: 20px 40px;
    }
}

/* Order Confirmation Page */
.confirmation-container {
    background: var(--secondary);
    border: 2px solid var(--border);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.confirmation-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 3px solid var(--border);
}

.confirmation-header h1 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 10px;
}

.confirmation-header .thank-you {
    font-size: 18px;
    color: var(--text);
}

.order-details {
    margin-bottom: 30px;
}

.order-summary-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

.order-summary-section h2 {
    font-size: 24px;
    margin-bottom: 5px;
}

.order-date {
    color: #666;
    font-size: 14px;
}

.order-section {
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border: 2px solid var(--border);
}

.order-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.address-details p {
    margin: 5px 0;
    line-height: 1.6;
}

.order-items {
    margin-top: 10px;
}

.item-details {
    flex: 1;
}

.item-details small {
    color: #666;
}

.item-price {
    font-weight: bold;
    white-space: nowrap;
    margin-left: 20px;
}

.order-totals {
    margin-top: 15px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.total-row.total {
    font-size: 18px;
    padding-top: 15px;
    border-top: 2px solid var(--border);
}

.payment-status {
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid var(--border);
    font-weight: bold;
    text-transform: uppercase;
}

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

.payment-status.pending {
    background: #fff3cd;
    color: #856404;
}

.confirmation-message {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border: 2px solid var(--border);
}

.confirmation-message p {
    margin: 8px 0;
    font-size: 16px;
}

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

.continue-shopping-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary);
    color: var(--text);
    border: 2px solid var(--border);
    font-weight: bold;
    letter-spacing: 2px;
    text-decoration: none;
    box-shadow: 3px 3px 0 var(--shadow);
    transition: all 0.2s;
}

.continue-shopping-button:hover {
    background: var(--button-hover);
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--shadow);
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #666;
}

.error {
    text-align: center;
    padding: 40px;
    color: #e74c3c;
}

.error p {
    margin: 10px 0;
}

/* Product Disclaimer Fine Print */
.product-disclaimer {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    font-size: 12px;
    line-height: 1.6;
    color: #666;
    font-style: italic;
}

/* Checkout Form Validation Errors */
.form-error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.form-error.visible {
    display: block;
}

.form-row input.error,
.form-row select.error,
.form-row textarea.error {
    border-color: #e74c3c;
}

/* Customer Notes Field */
.form-row textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--border);
    font-family: Times, serif;
    font-size: 16px;
    background: white;
    resize: vertical;
    min-height: 100px;
}

.form-row textarea:focus {
    outline: none;
    border-color: var(--primary);
}
