/* Reset & Variables */
:root {
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --color-bg: #FAFAF9;
    --color-text-main: #1C1917;
    --color-text-muted: #57534E;
    --color-accent: #A8A29E;
    --color-primary: #44403C;
    /* Dark Stone */
    --color-white: #FFFFFF;
    --color-success: #25D366;
    /* WhatsApp Green */
    --color-danger: #EF4444;
    --color-warning: #F59E0B;

    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.875rem;
    border: 1px solid var(--color-primary);
    transition: var(--transition-smooth);
    cursor: pointer;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(250, 250, 249, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--color-text-main);
}

.btn-contact {
    border-bottom: 1px solid var(--color-text-main);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    /* Remove background-image as we have video now */
    background-color: #000;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    object-fit: cover;
    /* This works for video tag! */
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Darker overlay for better text readability over video */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 1rem;
    margin-top: 80px;
    /* offset fixed navbar */
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-tagline {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 300;
}

.hero .btn-primary {
    background-color: var(--color-white);
    color: var(--color-text-main);
    border-color: var(--color-white);
}

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

/* Collection Section */
.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

.section-subtitle {
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Collection Layout with Sidebar */
.collection-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Filter Sidebar */
.filter-sidebar {
    background: var(--color-white);
    padding: 1.5rem;
    position: sticky;
    top: 100px;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
}

/* Search Box */
.search-box {
    position: relative;
    margin-bottom: 2rem;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 1px solid #E7E5E4;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.search-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    pointer-events: none;
}

/* Filters Container */
.filters-container {
    margin-bottom: 1.5rem;
}

.filter-group {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #E7E5E4;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.filter-group-title::after {
    content: '−';
    font-size: 1.25rem;
    transition: transform 0.3s ease;
    display: none;
    /* Hidden by default, shown on mobile */
}

.filter-group.collapsed .filter-group-title::after {
    content: '+';
}

.filter-options {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
    max-height: 1000px;
    /* Large enough for all options */
    opacity: 1;
}

.filter-group.collapsed .filter-options {
    max-height: 0 !important;
    opacity: 0;
}

.filter-option {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    cursor: pointer;
}

.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.filter-option label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    cursor: pointer;
    user-select: none;
}

.filter-option:hover label {
    color: var(--color-text-main);
}

/* Clear Filters Button */
.btn-clear-filters {
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-radius: 4px;
}

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

/* Products Main Area */
.products-main {
    min-height: 400px;
}

.products-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #E7E5E4;
}

.results-count {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Responsive Sidebar */
@media (max-width: 1024px) {
    .collection-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .filter-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
}

/* Mobile Filter Pills (Amazon Style) */
@media (max-width: 768px) {

    /* Hide desktop sidebar on mobile */
    .filter-sidebar {
        display: none;
    }

    /* Show mobile filter pills */
    .mobile-filter-pills {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
        padding: 0.75rem 0;
        margin-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        max-width: 100%;
    }

    .mobile-filter-pills::-webkit-scrollbar {
        display: none;
    }

    .filter-pill {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        background: white;
        border: 1.5px solid #E7E5E4;
        border-radius: 20px;
        font-size: 0.875rem;
        white-space: nowrap;
        cursor: pointer;
        transition: all 0.2s;
        flex-shrink: 0;
    }

    .filter-pill:hover {
        border-color: var(--color-primary);
    }

    .filter-pill.active {
        background: var(--color-primary);
        color: white;
        border-color: var(--color-primary);
    }

    .filter-pill svg {
        width: 16px;
        height: 16px;
    }

    /* Filter Bottom Sheet Modal */
    .filter-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 3000;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .filter-modal.show {
        display: block;
        opacity: 1;
    }

    .filter-modal-content {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-radius: 16px 16px 0 0;
        max-height: 80vh;
        overflow-y: auto;
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }

    .filter-modal.show .filter-modal-content {
        transform: translateY(0);
    }

    .filter-modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid #E7E5E4;
        position: sticky;
        top: 0;
        background: white;
        z-index: 1;
    }

    .filter-modal-title {
        font-size: 1.1rem;
        font-weight: 600;
    }

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

    .filter-modal-body {
        padding: 1.5rem;
    }

    .filter-modal-footer {
        display: flex;
        gap: 1rem;
        padding: 1rem 1.5rem;
        border-top: 1px solid #E7E5E4;
        position: sticky;
        bottom: 0;
        background: white;
    }

    .filter-modal-footer button {
        flex: 1;
        padding: 0.75rem;
        border-radius: 8px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
    }

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

    .btn-apply-modal {
        background: var(--color-primary);
        border: none;
        color: white;
    }
}

/* Desktop: Hide mobile elements */
@media (min-width: 769px) {

    .mobile-filter-pills,
    .filter-modal {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }

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

    /* Enable collapsible filters on mobile */
    .filter-group-title::after {
        display: block;
    }

    .filter-group {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    .filter-group.collapsed {
        margin-bottom: 0.5rem;
    }

    .filter-group-title {
        font-size: 0.875rem;
    }

    .filter-option label {
        font-size: 0.85rem;
    }

    .search-box input {
        font-size: 0.9rem;
        padding: 0.65rem 2.5rem 0.65rem 0.85rem;
    }

    .btn-clear-filters {
        font-size: 0.8rem;
        padding: 0.65rem;
    }

    .products-header {
        margin-bottom: 1rem;
    }

    .results-count {
        font-size: 0.85rem;
    }

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

    .card-image-wrapper {
        height: 250px;
    }

    .card-info {
        padding: 1rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-price {
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.75rem;
    }

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

    .filter-sidebar {
        padding: 0.75rem;
        border-radius: 4px;
    }

    .search-box input {
        font-size: 0.875rem;
    }

    .product-grid {
        gap: 1rem;
    }

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

    .card-title {
        font-size: 1rem;
    }

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

    .modal-image-container {
        height: 300px;
    }

    .modal-details {
        padding: 1.5rem;
    }

    #modalTitle {
        font-size: 1.75rem;
    }
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Product Card */
.product-card {
    background: var(--color-white);
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

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

.card-image-wrapper {
    height: 320px;
    overflow: hidden;
    position: relative;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

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

.card-info {
    padding: 1.5rem;
    text-align: center;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.card-type {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--color-white);
    width: 90%;
    max-width: 1000px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-text-light);
    transition: var(--transition-smooth);
    z-index: 10;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
}

.close-modal:hover {
    color: var(--color-primary);
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* Gallery Styles */
.modal-image-container {
    height: 500px;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    position: relative;
    /* For arrow positioning */
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
}

/* Gallery Navigation Arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background 0.2s;
}

.gallery-nav:hover {
    background: white;
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}

.modal-image-container img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    scroll-snap-align: start;
}

/* Hide scrollbar for gallery */
.modal-image-container::-webkit-scrollbar {
    display: none;
}

.modal-image-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.modal-details {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    /* justify-content: center; Removed to prevent clipping on overflow */
}

#modalTitle {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
}

.modal-divider {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    width: 50px;
    margin: 1.5rem 0;
}

#modalDesc {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.modal-specs li {
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
    font-size: 0.9rem;
}

.modal-specs strong {
    font-weight: 500;
    margin-right: 0.5rem;
}

/* Footer */
.footer {
    background-color: #1C1917;
    color: #A8A29E;
    padding: 4rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand h3 {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-links a {
    margin-left: 2rem;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-white);
}

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

    .nav-links {
        display: none;
        /* Simple hide for now, would add JS toggle for mobile menu in full version */
    }

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

    .modal-content {
        width: 95%;
        margin: 0 auto;
        max-height: 85vh;
    }

    .modal-image-container {
        height: 250px;
    }

    .modal-details {
        padding: 1.25rem;
    }

    #modalTitle {
        font-size: 1.75rem;
    }

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

/* Cart Button */
.cart-btn {
    position: relative;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-count {
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 0.75rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    display: none;
    /* Hidden by default */
}

/* Badges */
.badge-low-stock {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: #e76f51;
    /* Terracotta for premium feel */
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 2px;
    z-index: 2;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

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

.card-rating {
    color: var(--color-warning);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.rating-val {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    margin-left: 0.25rem;
}

/* Modal Enhancements */
.modal-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.modal-price {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.stock-status {
    font-size: 0.9rem;
    color: var(--color-success);
    margin-bottom: 1rem;
}

.text-danger {
    color: var(--color-danger);
}

.calculator-box {
    background-color: #F5F5F4;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.calculator-box label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.calc-input-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.calc-input-group input {
    padding: 0.75rem;
    border: 1px solid #E7E5E4;
    border-radius: 4px;
    width: 100px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.total-price-display {
    font-size: 1.1rem;
}

.modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.modal-actions .btn-whatsapp {
    grid-column: 1 / -1;
}

.btn-block {
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border: 1px solid #25D366;
    padding: 1rem 2rem;
    font-weight: 500;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    border-color: #128C7E;
}

/* Bid Box Styling */
.bid-box {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E7E5E4;
}

.bid-box label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.bid-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.bid-input-group input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #E7E5E4;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.btn-outline {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

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

/* Modern Checkout Modal */
.checkout-content {
    max-width: 900px;
    width: 95%;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background: #FFFFFF;
}

.checkout-header {
    background: #FFFFFF;
    padding: 1.5rem 2.5rem;
    border-bottom: 1px solid #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkout-header h2 {
    font-size: 1.5rem;
    margin: 0;
    color: #111827;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.checkout-body {
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    background: #F9FAFB;
}

/* Order Summary (Left Side) */
.order-summary {
    background: #F3F4F6;
    padding: 2.5rem;
    border-right: 1px solid #E5E7EB;
}

.order-summary h3 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: #374151;
    font-weight: 600;
}

.cart-items-list {
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #E5E7EB;
}

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

.cart-item-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.cart-item-info p {
    font-size: 0.875rem;
    color: #6B7280;
}

.cart-item-price {
    font-weight: 600;
    color: #111827;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid #D1D5DB;
    margin-top: auto;
}

.cart-total-row span {
    font-size: 1rem;
    color: #4B5563;
}

.cart-total-row strong {
    font-size: 1.5rem;
    color: #111827;
    font-weight: 700;
}

/* Payment Form (Right Side) */
.payment-form-container {
    padding: 2.5rem;
    background: #FFFFFF;
}

.payment-form-container h3 {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #111827;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: #374151;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: #111827;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    background: #FFFFFF;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(68, 64, 60, 0.1);
}

.form-group input::placeholder {
    color: #9CA3AF;
}

.btn-place-order {
    width: 100%;
    padding: 1rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-place-order:hover {
    background: #292524;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Modern Bid Box */
.bid-box {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.bid-box label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    display: block;
}

.bid-input-group {
    display: flex;
    gap: 0.75rem;
}

.bid-input-group input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
}

.bid-input-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(68, 64, 60, 0.1);
}

.btn-outline {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 1px solid #D1D5DB;
    color: #374151;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: #FAFAF9;
}

/* Modal Image Fix & Desktop Layout */
@media (min-width: 769px) {
    .modal-body {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: 0;
    }

    .modal-image-container {
        height: 100%;
        min-height: 600px;
        background: #F3F4F6;
    }

    .modal-details {
        padding: 3rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-content {
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .checkout-body {
        grid-template-columns: 1fr;
    }

    .order-summary {
        display: none;
        /* Keep hidden on mobile for now as per previous logic */
    }

    .payment-form-container {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .checkout-header {
        padding: 1.25rem 1.5rem;
    }
}