/* =========================
   GLOBAL RESET + BASE
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden; /* prevents horizontal scroll */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    background: #f5f5f5;
}

/* Responsive images */
img {
    position: relative;
    top: 3px;
  height: 56px;
  width: 56px;
  display: block;
}

/* Generic containers (safe patch, no HTML changes needed) */
.container, .wrapper, main, section {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 0 16px;
}

/* Touch-friendly inputs/buttons */
button, input, select, textarea {
    font-size: 16px; /* prevents iOS zoom */
    max-width: 100%;
}

button {
    cursor: pointer;
}

/* =========================
   HEADER
========================= */
.header {
    margin: 0;
    background: linear-gradient(to right, #0B3F27, #186F48);
    padding: 30px 40px;
    text-align: left;
    font-size: 42px;
    font-weight: bold;
    color: white;
}

/* =========================
   CAROUSEL
========================= */
.carousel-container {
    max-width: 100vw;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;     /* ✅ REQUIRED */
    flex: 0 0 100%;      /* ✅ even stronger fix */
    height: 43vw;
    position: relative;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* Overlay */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;  /* ✅ FIX: no 100dvw */
    height: 100%; /* ✅ full overlay height */

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    color: white;
    text-align: center;
    padding: 20px;

    /* removed confusing background lines */
    background: none;
}

.slide-overlay h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-overlay p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 600px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Button */
.shop-btn {
    padding: 15px 40px;
    background: white;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.shop-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Nav arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev { left: 20px; }
.carousel-nav.next { right: 20px; }

/* Dots */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* Slides BG Images */
.slide1 {
    width: 100vw;
    background-image: url('images/a1.jpeg');
    background-size: cover;       /* ✅ fixed */
    background-position: center;
    background-repeat: no-repeat;
}

.slide2 {
    background-image: url('images/a3.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* =========================
   CATEGORY CHOOSE CARDS
========================= */
.category-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    padding: 40px 20px;
}

.category-cards a {
    transition: all 0.3s ease-in-out;
    display: inline-block;
}

.category-cards a:hover {
    transform: scale(1.06);
}

/* cards */
.category-cards #c1,
.category-cards #c2 {
    display: flex;
    position: relative;
    padding: 20px 50px;
    height: 300px;
    transition: all 0.3s ease;
}

/* =========================
   REVIEWS SECTION
========================= */
.reviews-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 16px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    color: black;
}

.section-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.rating-summary {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.overall-rating {
    text-align: center;
}

.rating-number {
    font-size: 3em;
    font-weight: bold;
    color: #667eea;
}

.stars-large {
    color: #ffc107;
    font-size: 1.5em;
    margin: 10px 0;
}

.total-reviews {
    color: #666;
    font-size: 0.9em;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.review-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2em;
    font-weight: bold;
}

.reviewer-info h3 {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 3px;
}

.review-date {
    font-size: 0.85em;
    color: #999;
}

.stars {
    color: #ffc107;
    margin-bottom: 12px;
}

.review-text {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.verified-badge {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
}

/* =========================
   FOOTER
========================= */
footer {
    background: #1a1a2e;
    color: white;
    padding: 60px 40px 30px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: #f0a500;
    font-size: 1.3em;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    color: #bdc3c7;
    line-height: 2;
    text-decoration: none;
    display: block;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #f0a500;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
}

/* =========================
   RESPONSIVE BREAKPOINTS
========================= */

/* Tablet adjustments */
@media (max-width: 991px) {
    .container, .wrapper, main, section {
        padding: 0 14px;
    }
.slide1 {
    width: 100vw;
}
    /*.carousel-slide {*/
    /*    height: 520px;*/
    /*}*/
}

/* Mobile */
@media (max-width: 769px) {
    
    .header {
        font-size: 30px;
        padding: 18px 18px;
    }

    /*.carousel-slide {*/
    /*   height: 50vw;*/
    /*}*/

    .slide-overlay h2 {
        font-size: 34px;
    }

    .slide-overlay p {
        font-size: 16px;
    }

    .shop-btn {
        padding: 10px 28px;
        font-size: 14px;
    }

    .carousel-nav {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    /* ✅ Category cards stacked (one below another) */
    .category-cards {
        flex-direction: column;
        align-items: center;
        gap: 18px;
        padding: 25px 14px;
    }

    .category-cards a {
        width: 100%;
        max-width: 380px;
    }

    .category-cards #c1,
    .category-cards #c2 {
        width: 100%;
        max-width: 380px;
        padding: 60px 30px;
        height: auto; /* ✅ */
        justify-content: center;
        align-items: center;
    }

    .section-header h1 {
        font-size: 2em;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .rating-summary {
        flex-direction: column;
        gap: 20px;
    }

    /* If you have product grids anywhere */
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* Very small devices */
@media (max-width: 426px) {
    /*.carousel-slide {*/
    /*    height: 200px;*/
    /*}*/

    .slide-overlay h2 {
        font-size: 26px;
    }

    .slide-overlay p {
        font-size: 14px;
    }

    .shop-btn {
        padding: 8px 20px;
        font-size: 12px;
    }

    .carousel-nav {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .container, .wrapper, main, section {
        padding: 0 12px;
    }
}

@media (max-width: 320px){

    /*    .carousel-slide {*/
    /*    height: 140px;*/
    /*}*/
}

/* add styling for add review */
.review-form-wrapper {
    margin-top: 40px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

.review-form-content h3 {
    margin-bottom: 20px;
    font-size: 22px;
    color: #222;
}

.review-input, 
.review-form-content textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.review-form-content textarea {
    height: 120px;
    resize: vertical;
}

.rating-selector {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
    margin-bottom: 20px;
}

.rating-selector input {
    display: none;
}

.rating-selector label {
    font-size: 24px;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
}

.rating-selector label:hover,
.rating-selector label:hover ~ label,
.rating-selector input:checked ~ label {
    color: #ffc107;
}

.add-review-btn {
    background-color: #222;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-review-btn:hover {
    background-color: #444;
}
