:root {
    --color-primary: #d4745f;
    --color-primary-dark: #b85f4a;
    --color-background: #faf8f6;
    --color-surface: #ffffff;
    --color-text: #2d2d2d;
    --color-text-muted: #6b6b6b;
    --color-border: #e8e4df;
    --font-heading: "Playfair Display", serif;
    --font-body: "Inter", sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

/* Header Styles */
.site-header {
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
}

.site-header .nav-link {
    color: var(--color-text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

.site-header .nav-link:hover {
    color: var(--color-primary);
}

.cart-button {
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 1.25rem;
    cursor: pointer;
    position: relative;
    padding: 0.5rem;
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--color-primary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero-section {
    background-color: var(--color-surface);
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.hero-section p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Filter Section */
.filter-section {
    padding: 2rem 0;
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.filter-section select {
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--color-text);
    background-color: var(--color-surface);
}

/* Product Card */
.product-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    overflow: hidden;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.product-card-image {
    width: 100%;
    height: 280px;
    object-fit: contain;
    object-position: center;
    background-color: #f8f9fa;
    padding: 1rem;
    transition: transform 0.2s ease;
}

.product-card:hover .product-card-image {
    transform: scale(1.05);
}

.product-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin: 0;
}

.product-title {
    margin: 0;
    flex-grow: 1;
}

.product-title a {
    color: var(--color-text) !important;
    text-decoration: none !important;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    display: block;
    transition: color 0.2s ease;
}

.product-title a:hover {
    color: var(--color-primary) !important;
}

.product-title h3 {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.product-description {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    gap: 1rem;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.product-footer .flex {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-footer .font-semibold {
    font-weight: 700;
}

.product-footer .text-lg {
    font-size: 1.3rem;
}

.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

/* Product Detail Page */
.product-detail {
    padding: 3rem 0;
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.thumbnail-container {
    display: flex;
    gap: 0.5rem;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.5rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--color-primary);
}

.product-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.product-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-category {
    background-color: #f0f0f0;
    color: var(--color-text);
}

.badge-difficulty {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.product-price-large {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.product-description-full {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.product-specs {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.product-specs h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
}

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

.spec-label {
    font-weight: 500;
    color: var(--color-text-muted);
}

.spec-value {
    color: var(--color-text);
}

/* Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background-color: var(--color-surface);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1050;
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s,
        visibility 0.3s;
    z-index: 1040;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 1.5rem;
    margin: 0;
}

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

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-item.row {
    display: flex !important;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}
.cart-item>div {
    display:flex !important
}
.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.5rem;
}

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

.cart-item-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

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

.quantity-btn {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    width: 28px;
    height: 28px;
    border-radius: 0.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.remove-item {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 1.25rem;
}

.remove-item:hover {
    color: var(--color-primary);
}

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

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

.btn-checkout {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.empty-cart {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--color-text-muted);
}

/* Footer */
.site-footer {
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* Collage Section */
.collage-section {
    text-align: center;
    margin-bottom: 2rem;
}

.collage-section img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Products Section */
#products {
    background-color: var(--color-background);
}

#productsGrid {
    margin-bottom: 2rem;
}

#productsGrid .col-md-6,
#productsGrid .col-lg-4 {
    margin-bottom: 2rem;
}

/* Out of stock styling */
.info span {
    background-color: #6c757d;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Remove blue link styling globally */
a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

/* Ensure button styling remains consistent */
.btn {
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none !important;
    display: inline-block;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .cart-drawer {
        width: 100%;
        right: -100%;
    }

    .product-info h1 {
        font-size: 2rem;
    }

    .product-price-large {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .product-card-body {
        padding: 1rem;
        gap: 0.75rem;
    }

    .product-card-image {
        height: 220px;
    }

    .product-title a {
        font-size: 1rem;
    }

    .product-price,
    .product-footer .text-lg {
        font-size: 1.1rem;
    }
}
.modal.show {
    visibility: visible;
    opacity: 1;
}


.modal {
    position: fixed;
    width: 100vw;
    height: 100vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal.open {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}
.modal-bg {
    position: absolute;
    background: teal;
    width: 100%;
    height: 100%;
}
.modal-container {
    border-radius: 10px;
    background: #fff;
    position: relative;
    padding: 30px;
}
.modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    outline: none;
    appearance: none;
    color: red;
    background: none;
    border: 0px;
    font-weight: bold;
    cursor: pointer;
}

/* Cart Badge Styling */
#cartBadge {
    font-size: 0.5rem !important;
    min-width: 14px !important;
    height: 14px !important;
    line-height: 1 !important;
    padding: 2px 4px !important;
    font-weight: 600 !important;
    transform: translate(-25%, -25%) !important;
}

/* FanBox Location Styling */
.fanbox-location {
    transition: all 0.2s ease;
    border: 1px solid #dee2e6;
}

.fanbox-location:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: var(--color-primary);
}

.fanbox-location.border-primary {
    border-color: var(--color-primary) !important;
    box-shadow: 0 2px 8px rgba(212, 116, 95, 0.2);
}

#fanboxMapContainer {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 667px) {
  .cart-item .btn {
    min-width: 32px;
    padding: 0.25rem 0.5rem;
  }
  .cart-item .fw-bold {
    font-size: 1rem;
  }
}