/* =========================================
   1. GLOBAL STYLES & RESET
   ========================================= */
body {
    background-color: #f4f9fd;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    color: #222;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   2. HEADER & NAVBAR (Preserved)
   ========================================= */
#header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 60px;
    background-color: #f4f9fd;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    z-index: 999;
    position: sticky;
    top: 0;
    left: 0;
    height: 75px;
}

#header a img {
    width: 250px;
    height: 75px;
    object-fit: contain;
}

#navbar {
    display: flex;
    justify-content: center;
    list-style: none;
    align-items: center;
    gap: 5px;
    position: relative;
}

#navbar li {
    list-style: none;
    position: relative;
    padding: 0;
}

#navbar li a {
    text-decoration: none;
    font-size: 18px;
    font-weight: 200;
    color: #4ab2a8;
    transition: 0.3s ease;
    padding: 12px 20px;
    display: block;
}

#navbar li a:hover,
#navbar li a.active {
    color: #1d71b8 !important;
}

#navbar li a.active::after,
#navbar li a:hover::after {
    content: '';
    width: 30%;
    height: 2px;
    background-color: #1d71b8 !important;
    position: absolute;
    bottom: 6px;
    left: 20px;
}

#mobile {
    display: none;
    align-items: center;
}

#close {
    display: none;
}

/* =========================================
   3. MAIN LAYOUT & BACK BUTTON
   ========================================= */
.main-content {
    padding: 40px 20px;
    min-height: 60vh;
}

/* Back Button Wrapper (from your HTML) */
.back-button-wrapper {
    max-width: 1100px;
    margin: 30px auto 0; /* Spacing above button */
    padding: 0 20px;
    display: flex;
    justify-content: flex-start;
}

/* Back Button Styling (Clean Outline) */
.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    background-color: transparent;
    color: #1d71b8; /* Theme Blue */
    text-decoration: none;
    border: 2px solid #1d71b8;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #1d71b8;
    color: #fff;
    box-shadow: 0 4px 10px rgba(29, 113, 184, 0.3);
}

/* =========================================
   4. PRODUCT CONTAINER (eBay Style)
   ========================================= */

/* This styles the dynamic content injected into #product-container */
.product-detail-container {
    display: flex;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px;
    background: #ffffff;
    border: 1px solid #e5e5e5; /* eBay style border */
    border-radius: 8px;
    align-items: flex-start;
}

/* --- Left Column: Image Slider --- */
.slider-wrapper {
    flex: 0 0 500px; /* Fixed width */
    width: 100%;
    position: relative;
    border-radius: 4px;
    background: #fff;
    border: 1px solid #f0f0f0;
}

.slider-1 {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.slider-1::-webkit-scrollbar {
    display: none;
}

.slider-1 img {
    flex: 0 0 100%;
    width: 100%;
    height: 450px; /* Optimal height */
    object-fit: contain;
    scroll-snap-align: center;
    display: block;
    padding: 10px;
    box-sizing: border-box;
}

/* Dots Navigation */
.slider-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}

.slider-nav a {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    border: 1px solid #fff;
    box-shadow: 0 0 0 1px #ccc;
    cursor: pointer;
    transition: 0.2s;
}

.slider-nav a.active {
    background-color: #1d71b8;
    box-shadow: 0 0 0 1px #1d71b8;
}

/* --- Right Column: Details --- */
/* Container */
/* Container */
.product-details-ind {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: inherit; /* keep site’s original font */
    color: #1f2937; /* dark gray for main text */
    line-height: 1.6;
}

/* Product Title */
.product-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a; /* dark text */
    margin-bottom: 10px;
}

/* Price */
.product-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: #111827; /* slightly darker gray for emphasis */
    margin-bottom: 15px;
}

/* Basic Info */
.product-basic-info {
    font-size: 0.95rem;
    font-weight: 600;
    color: #4b5563; /* muted gray */
    margin-bottom: 25px;
}

/* Description Section */
.product-description-section {
    border-top: 1px solid #e5e7eb; /* light border */
    padding-top: 20px;
    margin-bottom: 30px;
}

.product-description-section h4 {
    font-size: 1rem;
    font-weight: 800;
    color: #374151; /* dark gray */
    text-transform: uppercase;
    margin-bottom: 12px;
}

.product-description-section p {
    margin-bottom: 12px;
}

.product-description-list {
    margin-top: 10px;
    padding-left: 20px;
    list-style-type: disc;
}

.product-description-list li {
    margin-bottom: 8px;
}

/* Order Button */
.order-now-container {
    text-align: left;
}

.order-now-container .btn-primary {
    display: inline-block;
    background-color: #2563eb; /* professional blue */
    color: #fff;
    font-weight: 700;
    padding: 12px 28px;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.order-now-container .btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}

/* =========================================
   5. FOOTER (Preserved)
   ========================================= */
footer {
    background-color: #f4f9fd;
    color: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0 20px;
}

footer .columns {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 960px;
    text-align: center;
    flex-wrap: wrap;
}

footer .col, footer .follow {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

footer h4 {
    font-size: 14px;
    font-weight: 600;
    padding-bottom: 10px;
    text-transform: uppercase;
}

footer p, footer a {
    font-size: 13px;
    color: #333;
    text-decoration: none;
    padding-bottom: 8px;
    margin: 0;
    transition: color 0.2s;
}

footer a:hover {
    color: #1d71b8;
}

footer .copyright {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-top: 30px;
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
    width: 90%;
}

/* =========================================
   6. RESPONSIVENESS
   ========================================= */
@media (max-width: 900px) {
    .product-detail-container {
        flex-direction: column;
        padding: 20px;
        gap: 30px;
    }

    .slider-wrapper {
        flex: auto;
        width: 100%;
        max-width: 100%;
    }

    .slider-1 img {
        height: 350px;
    }
}

@media (max-width: 799px) {
    #navbar {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        position: fixed;
        top: 0;
        right: -300px;
        height: 100vh;
        width: 300px;
        background-color: #fff;
        box-shadow: 0 40px 60px rgba(0,0,0,0.1);
        padding: 80px 0 0 20px;
        transition: 0.3s;
    }

    #navbar.active {
        right: 0;
    }

    #navbar li {
        margin-bottom: 25px;
    }

    #mobile {
        display: flex;
        font-size: 24px;
        padding-right: 20px;
        cursor: pointer;
    }

    #close {
        display: initial;
        position: absolute;
        top: 30px;
        left: 30px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .product-detail-container {
        border: none;
        background: transparent;
        padding: 0;
    }
    
    .product-details-ind {
        background: #fff;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }

    .slider-wrapper {
        border: none;
    }
}


/* =========================================
   SLIDER ARROW STYLING
   ========================================= */

/* 1. Ensure the wrapper is relative so arrows sit inside it */
.slider-wrapper {
    position: relative; 
}

/* 2. Common Arrow Styles */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* Centers vertically */
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white */
    color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10; /* sits on top of image */
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    opacity: 0; /* Hidden by default */
}

/* 3. Show arrows when hovering over the image */
.slider-wrapper:hover .slider-arrow {
    opacity: 1;
}

/* 4. Hover effect on the arrow itself */
.slider-arrow:hover {
    background-color: #1d71b8; /* Theme Blue */
    color: #fff;
    transform: translateY(-50%) scale(1.1); /* Slight grow effect */
}

/* 5. Positioning */
.slider-arrow-left {
    left: 15px;
}

.slider-arrow-right {
    right: 15px;
}

/* 6. Mobile Optimization */
@media (max-width: 768px) {
    .slider-arrow {
        opacity: 1; /* Always visible on mobile */
        width: 35px;
        height: 35px;
        font-size: 14px;
        background-color: rgba(255, 255, 255, 0.9);
    }
}