@import url('https://fonts.googleapis.com/css2?family=Boldonse&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #46b7d1;
    --light-gray: rgb(248, 248, 248);

    /* Light theme colors */
    --bg-primary: #e8f0f0;
    --bg-secondary: white;
    --bg-card: white;
    --text-primary: #333;
    --text-secondary: #666;
    --text-muted: #9e9ea7;
    --border-color: #e5e7eb;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

[data-theme='dark'] {
    --bg-primary: rgb(30, 29, 27);
    --bg-secondary: rgb(36, 37, 39);
    --bg-card: rgb(36, 37, 39);
    --text-primary: #f8f9fa;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --border-color: #4b5563;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

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

body {
    background-color: var(--bg-primary);
    min-height: 100vh;
    padding: 20px;
    font-family: "Open Sans", sans-serif;
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6,
.modal-title,
.item-name,
.cart-title,
.checkout-title,
.section-title {
    font-family: "Boldonse", serif;
    font-weight: normal;
}

p,
span,
div,
input,
button,
label {
    font-family: "Open Sans", sans-serif;
}

/* Theme Toggle */
.theme-toggle {
    position: relative;
    margin-right: 1rem;
}

.theme-toggle-checkbox {
    display: none;
}

.theme-toggle-label {
    display: block;
    width: 60px;
    height: 30px;
    background: var(--border-color);
    border-radius: 15px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
}

.theme-toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 26px;
    height: 26px;
    background: var(--bg-secondary);
    border-radius: 50%;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.theme-toggle-icon {
    font-size: 12px;
    position: absolute;
    transition: opacity 0.3s ease;
}

.theme-toggle-icon.moon {
    opacity: 0;
}

.theme-toggle-checkbox:checked+.theme-toggle-label {
    background: var(--primary);
}

.theme-toggle-checkbox:checked+.theme-toggle-label .theme-toggle-slider {
    transform: translateX(30px);
}

.theme-toggle-checkbox:checked+.theme-toggle-label .theme-toggle-icon.sun {
    opacity: 0;
}

.theme-toggle-checkbox:checked+.theme-toggle-label .theme-toggle-icon.moon {
    opacity: 1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: background-color 0.3s ease;
}

/* Loading and Error States */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f4;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.error-message {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.error-message p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.retry-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: #3a9bc1;
    transform: translateY(-2px);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    color: var(--text-primary);
    font-family: "Ancizar Sans", sans-serif;
    text-decoration: none;
}

.logo-icon {
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.group {
    display: flex;
    line-height: 28px;
    align-items: center;
    position: relative;
    max-width: 190px;
}

.input {
    width: 80%;
    height: 40px;
    line-height: 28px;
    padding: 0 1rem;
    padding-left: 2.5rem;
    border: 2px solid transparent;
    border-radius: 8px;
    outline: none;
    background-color: var(--border-color);
    color: var(--text-primary);
    transition: .3s ease, background-color 0.3s ease, color 0.3s ease;
}

.input::placeholder {
    color: var(--text-muted);
}

.input:focus,
input:hover {
    outline: none;
    border-color: var(--primary);
    background-color: var(--bg-secondary);
    box-shadow: 0 0 0 4px rgba(70, 183, 209, 0.1);
    width: 100%;
}

.icon {
    position: absolute;
    left: 1rem;
    fill: var(--text-muted);
    width: 1rem;
    height: 1rem;
}

/* Search Container & Dropdown */
.search-container {
    position: relative;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow-color);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-dropdown.show {
    display: block;
}

.search-suggestion {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-suggestion:hover {
    background-color: var(--background-secondary);
}

.search-suggestion:last-child {
    border-bottom: none;
}

.suggestion-image {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.suggestion-info {
    flex: 1;
}

.suggestion-name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

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

.track-btn {
    font-family: "Ancizar Sans", sans-serif;
    cursor: pointer;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.8em;
    line-height: 10px;
    color: var(--primary);
}

.cart {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    position: relative;
}

.cart-icon {
    width: 20px;
    height: 20px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin: 3rem 0 2rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 900;
    font-family: "Ancizar Sans", sans-serif;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    font-style: italic;
}

/* Best Sellers Section */
.horizontal-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0 2rem;
    scroll-behavior: smooth;
}

.horizontal-scroll::-webkit-scrollbar {
    height: 8px;
}

.horizontal-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* Item Cards */
.item-card {
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 5px 20px var(--shadow-color);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    min-width: 280px;
    cursor: pointer;
    position: relative;
    border: 1px solid var(--border-color);
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.item-image-container {
    position: relative;
    overflow: hidden;
}

.item-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: linear-gradient(45deg, #f0e6d6, #e8dcc6);
    transition: 0.5s ease-in-out;
    filter: grayscale(1);
}

.item-card:hover .item-image {
    filter: grayscale(0);
}

.image-count-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.item-info {
    padding: 1.5rem;
}

.item-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: "Ancizar Sans", sans-serif;
}

.item-price {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 1rem;
}

.view-details-btn {
    background: linear-gradient(135deg, var(--primary) 0%, #3a9bc1 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    font-family: "Montserrat", sans-serif;
}

.view-details-btn:hover {
    background: linear-gradient(135deg, #3a9bc1 0%, #2e8ba8 100%);
    transform: translateY(-2px);
}

/* Catalogue Grid */
.catalogue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Load More Button */
.load-more {
    text-align: center;
    margin: 3rem 0;
}

.load-more-btn {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: "Montserrat", sans-serif;
}

.load-more-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Custom Request Section */
.custom-request {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    margin: 4rem 0;
    border: 1px solid var(--border-color);
}

.custom-request h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: "Ancizar Sans", sans-serif;
    font-weight: 900;
}

.custom-request p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.custom-request-btn {
    background: linear-gradient(135deg, #333 0%, #555 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-family: "Montserrat", sans-serif;
}

.custom-request-btn:hover {
    background: linear-gradient(135deg, #555 0%, #333 100%);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    transition: background-color 0.3s ease;
}

.modal-content {
    background: var(--bg-secondary);
    margin: 2% auto;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px var(--shadow-color);
    position: relative;
    animation: modalSlideIn 0.3s ease;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
}

.modal-title {
    font-size: 1.8rem;
    color: var(--text-primary);
    font-weight: 600;
    font-family: "Ancizar Sans", sans-serif;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--primary);
}

.modal-body {
    padding: 2rem;
    display: grid;
    /* grid-template-columns: 1fr 1fr; */
    gap: 2rem;
}

.modal-image-gallery {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    background: linear-gradient(45deg, #f0e6d6, #e8dcc6);
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.modal-image:hover {
    opacity: 0.9;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}

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

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

.indicator-dot.active {
    background: var(--primary);
}

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

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10001;
    transition: opacity 0.3s ease;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-price {
    font-size: 2rem;
    color: var(--primary);
    font-weight: bold;
    transition: color 0.3s ease;
}

.modal-description {
    color: var(--text-secondary);
    line-height: 1.6;
    transition: color 0.3s ease;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: "Ancizar Sans", sans-serif;
}

.size-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.size-option {
    display: none;
}

.size-label {
    padding: 0.5rem 1rem;
    border: 2px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.size-option:checked+.size-label {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.color-options {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.color-option {
    display: none;
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.color-option:checked+.color-swatch {
    border-color: var(--text-primary);
    transform: scale(1.1);
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-btn {
    background: var(--background-secondary);
    border: 2px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: var(--primary);
    color: white;
}

.quantity-input {
    width: 60px !important;
    min-width: 60px;
    max-width: 60px;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 0.5rem;
    font-size: 1.1rem;
    background: var(--background-secondary);
    color: var(--text-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.quantity-input:hover,
.quantity-input:focus {
    width: 60px !important;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(70, 183, 209, 0.1);
}

.custom-message {
    width: 100%;
    min-height: 80px;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
    resize: vertical;
    transition: border-color 0.3s ease;
    background: var(--background-secondary);
    color: var(--text-primary);
}

.custom-message:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(70, 183, 209, 0.1);
}

.custom-message::placeholder {
    color: var(--text-secondary);
}

.add-to-cart-btn {
    background: linear-gradient(135deg, #333 0%, #555 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
    font-family: "Montserrat", sans-serif;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #555 0%, #333 100%);
    transform: translateY(-2px);
}

/* Hash Tags */
.hashs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.hash {
    background: var(--light-gray);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #666;
}

/* Add these styles at the end of the file, before the responsive design section */

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-card);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow-color);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
    max-width: 400px;
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid;
    border: 1px solid var(--border-color);
}

.toast-success {
    border-left-color: #4caf50;
}

.toast-error {
    border-left-color: #f44336;
}

.toast-info {
    border-left-color: var(--primary);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 12px;
}

.toast-success .toast-icon {
    background: #4caf50;
}

.toast-error .toast-icon {
    background: #f44336;
}

.toast-info .toast-icon {
    background: var(--primary);
}

.toast-message {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0;
    margin-left: 0.5rem;
}

.toast-close:hover {
    color: var(--text-secondary);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Cart Modal Styles */
.cart-modal-content {
    max-width: 800px;
    max-height: 90vh;
}

.cart-modal-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    max-height: 70vh;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    max-height: 50vh;
}

.empty-cart {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.empty-cart-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-cart h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}

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

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    background: #f5f5f5;
}

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

.cart-item-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.cart-item-options {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.cart-item-message {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
}

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

.cart-quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--border-color);
    border-radius: 20px;
    padding: 0.25rem;
}

.cart-quantity-btn {
    background: var(--bg-secondary);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.cart-quantity-btn:hover {
    background: var(--primary);
    color: white;
}

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

.cart-item-subtotal {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.cart-remove-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.cart-remove-btn:hover {
    color: #f44336;
    background: var(--border-color);
}

.cart-footer {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
    background: var(--bg-primary);
}

.cart-total-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.cart-total-label {
    font-weight: 600;
    color: var(--text-primary);
}

.cart-total-amount {
    font-weight: bold;
    color: var(--primary);
    font-size: 1.4rem;
}

.cart-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.cart-actions .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
    border-color: var(--text-muted);
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background: #3a9bc1;
    border-color: #3a9bc1;
}

.btn-primary:disabled {
    background: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Checkout Modal Styles */
.checkout-modal-content {
    max-width: 800px;
    max-height: 90vh;
}

.checkout-modal-body {
    padding: 1.5rem;
    max-height: 75vh;
    overflow-y: auto;
}

.checkout-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.checkout-summary {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.checkout-summary h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-family: "Ancizar Sans", sans-serif;
}

.checkout-items {
    margin-bottom: 1rem;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

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

.checkout-item-name {
    flex: 1;
    color: var(--text-primary);
}

.checkout-item-quantity {
    color: var(--text-secondary);
    margin: 0 1rem;
}

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

.checkout-total {
    padding-top: 1rem;
    border-top: 2px solid #ddd;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.checkout-form-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-family: "Ancizar Sans", sans-serif;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-card);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(70, 183, 209, 0.1);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover {
    border-color: var(--primary);
    background: rgba(70, 183, 209, 0.05);
}

.radio-option input[type="radio"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    margin: 0;
}

.radio-option input[type="radio"]:checked+label {
    color: var(--primary);
    font-weight: 600;
}

.radio-option:has(input:checked) {
    border-color: var(--primary);
    background: rgba(70, 183, 209, 0.1);
}

/* Add visual radio indicator */
.radio-option::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-radius: 50%;
    background: white;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio-option:has(input:checked)::before {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: inset 0 0 0 3px white;
}

.checkout-submit-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.checkout-submit-btn:hover {
    background: #3a9bc1;
}

.checkout-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.checkout-submit-btn.loading {
    color: transparent;
    pointer-events: none;
}

.checkout-submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Order Confirmation Styles */
.order-confirmation {
    text-align: left;
}

.order-confirmation h3 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-family: "Ancizar Sans", sans-serif;
}

.confirmation-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.customer-info,
.order-items {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.customer-info h4,
.order-items h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-family: "Ancizar Sans", sans-serif;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.customer-info p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.confirmation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

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

.confirmation-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #ddd;
    font-size: 1.1rem;
    text-align: right;
}

.confirmation-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.confirmation-actions .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.confirmation-actions .btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.confirmation-actions .btn-secondary:hover {
    background: #e0e0e0;
}

.confirmation-actions .btn-primary {
    background: var(--primary);
    color: white;
}

.confirmation-actions .btn-primary:hover {
    background: #3a9bc1;
}

.confirmation-actions .btn-primary.loading {
    color: transparent;
    position: relative;
}

.confirmation-actions .btn-primary.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Mobile responsive styles for gallery and lightbox */
@media (max-width: 768px) {
    .theme-toggle {
        margin-right: 0.5rem;
    }

    .theme-toggle-label {
        width: 50px;
        height: 25px;
    }

    .theme-toggle-slider {
        width: 21px;
        height: 21px;
    }

    .theme-toggle-icon {
        font-size: 10px;
    }

    .theme-toggle-checkbox:checked+.theme-toggle-label .theme-toggle-slider {
        transform: translateX(25px);
    }

    .gallery-nav {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .gallery-prev {
        left: 5px;
    }

    .gallery-next {
        right: 5px;
    }

    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
        font-size: 2.5rem;
    }

    .lightbox-counter {
        bottom: 15px;
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .image-count-badge {
        font-size: 0.75rem;
        padding: 3px 6px;
    }
}

@media (max-width: 768px) {
    .confirmation-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .confirmation-actions {
        flex-direction: column;
    }

    .confirmation-actions .btn {
        width: 100%;
    }
}

/* Payment Modal Styles */
.payment-modal-content {
    max-width: 600px;
}

.payment-modal-body {
    padding: 2rem;
    text-align: center;
}

.payment-success {
    margin-bottom: 2rem;
}

.payment-icon {
    width: 60px;
    height: 60px;
    background: #4caf50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1rem;
}

.payment-success h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: "Ancizar Sans", sans-serif;
}

.payment-instructions {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: left;
    border: 1px solid var(--border-color);
}

.payment-instructions h5 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-family: "Ancizar Sans", sans-serif;
}

.account-details {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid var(--primary);
    margin: 1rem 0;
}

.account-info {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.payment-note {
    margin-top: 1rem;
    font-weight: 500;
    color: #666;
}

.payment-confirmation {
    margin-bottom: 2rem;
}

.payment-actions {
    margin-top: 1rem;
}

.payment-actions .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-info {
    border-top: 1px solid #eee;
    padding-top: 1rem;
    color: #666;
}

.copy-btn {
    border: none;
    background: green;
    color: white;
    padding: 0.5rem 1.8rem;
    margin-top: 1rem;
    border-radius: 16px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.copy-btn:hover {
    outline: none;
    border: 0.5px solid green;
    color: green;
    background-color: white;
    box-shadow: unset;
    width: auto;
}

#pickup:hover,
#delivery:hover {
    outline: none;
    border-color: unset;
    background-color: unset;
    box-shadow: unset;
    width: auto;
}

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

    .header-right {
        gap: 16px;
    }

    .modal-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .modal-image {
        height: 200px;
    }

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

    .custom-request h3 {
        font-size: 1.5rem;
    }

    .custom-request p {
        font-size: 1rem;
    }

    .custom-request-btn {
        font-size: 1rem;
        padding: 0.8rem 2rem;
    }

    .cart-actions {
        flex-direction: column;
    }

    .cart-actions .btn {
        width: 100%;
    }

    .checkout-sections {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .checkout-summary {
        order: 2;
    }

    .checkout-form-section {
        order: 1;
    }
}

@media (max-width: 506px) {
    .group {
        display: none;
    }

    .item-card {
        min-width: 220px;
    }

    .catalogue-grid {
        grid-template-columns: 1fr;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .hashs {
        flex-wrap: wrap;
    }
}