*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, sans-serif;
}

body{
    background:#fff;
}

.container{
    width:90%;
    margin:auto;
}

/* Navbar */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: rgba(0, 0, 0, 0.08) 0px 2px 10px;
    position: sticky;
    top: 0px;
    z-index: 100;
    background: rgb(255, 255, 255);
    padding: 15px 5%;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: #000;
    text-decoration: none;
}

.nav-icons{
    display:flex;
    gap:20px;
}

.cart-link {
    position: relative;
    display: inline-block;
    color: #000;
    text-decoration: none;
}

.cart-link i {
    color: #000;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: red;
    color: white;
    font-size: 12px;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    padding: 2px;
}

.wishlist-link{
    position: relative;
    color: black;
}

.wishlist-badge{
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    background: red;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
}

/* Guest Buttons */

.guest-actions{
    display:flex;
    align-items:center;
    gap:12px;
}

.login-btn,
.signup-btn{
    text-decoration:none;
    padding:10px 22px;
    border-radius:30px;
    font-size:14px;
    font-weight:600;
    transition:0.3s ease;
}

/* Login */

.login-btn{
    background:#fff;
    color:#111827;
    border:2px solid #111827;
}

.login-btn:hover{
    background:#111827;
    color:#fff;
}

/* Sign Up */

.signup-btn{
    background:#fff;
    color:#111827;
    border:2px solid #111827;
}

.signup-btn:hover{
    background:#111827;
    color:#fff;
}

/* Hero */


/* Offer image slider */
.offer-slider {
    position: relative;
    width: 100%;
    min-height: 420px;
    overflow: hidden;
    background: #f3f0eb;
}

.offer-slides {
    position: relative;
    min-height: 420px;
}

.offer-slide {
    display: none;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 30px;
    min-height: 420px;
    padding: 45px 9%;
    animation: offerFade 0.6s ease;
}

.offer-slide.active {
    display: grid;
}

.offer-slide-content {
    max-width: 520px;
}

.offer-label {
    display: inline-block;
    margin-bottom: 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #805b36;
}

.offer-slide-content h1 {
    margin: 0 0 18px;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.15;
    color: #171717;
}

.offer-slide-content p {
    margin-bottom: 28px;
    font-size: 17px;
    line-height: 1.7;
    color: #555;
}

.offer-shop-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 25px;
    background: #171717;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.25s ease;
}

.offer-shop-btn:hover {
    background: #805b36;
}

.offer-slide-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 330px;
}

.offer-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.slider-arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #171717;
    cursor: pointer;
    font-size: 20px;
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 9px;
}

.slider-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #b9b3ab;
    cursor: pointer;
}

.slider-dot.active {
    width: 25px;
    border-radius: 10px;
    background: #171717;
}

@keyframes offerFade {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .offer-slider,
    .offer-slides {
        min-height: 510px;
    }

    .offer-slide {
        grid-template-columns: 1fr;
        gap: 12px;
        min-height: 510px;
        padding: 35px 45px 50px;
        text-align: center;
    }

    .offer-slide-image {
        height: 220px;
        grid-row: 1;
    }

    .offer-slide-content h1 {
        font-size: 32px;
    }

    .offer-slide-content p {
        font-size: 15px;
    }

    .slider-prev {
        left: 8px;
    }

    .slider-next {
        right: 8px;
    }
}

/* Brands */

.brands {
    background: black;
    color: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.brand-item {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.brand-item:hover {
    color: #bdbdbd;
}

.brands-section {
    padding: 35px 5%;
    text-align: center;
}

.brands-section h2 {
    font-size: 22px;
    margin-bottom: 25px;
    letter-spacing: 2px;
}


/* Products */

.products{
    padding:70px 5%;
    text-align:center;
}

.products h2{
    margin-bottom:40px;
}

.product-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
}

.card{
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 2px 10px rgba(0,0,0,0.08);
}

.card img{
    width:100%;
    height:280px;
    object-fit:cover;
    display:block;
}

.card h4{
    padding:10px;
    font-size:16px;
    color:#000;
}

.card p{
    padding:0 10px 15px;
    font-weight:600;
    color: #000;
}

.view-btn{
    margin-top:30px;
    padding:12px 25px;
    border-radius:30px;
    border:1px solid #ddd;
    background:white;
}

/* Style Section */

.style-section{
    padding:70px 5%;
    background:#f5f5f5;
    border-radius:20px;
    margin:40px;
}

.style-section h2{
    text-align:center;
    margin-bottom:40px;
}

.style-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
}

.style-card img{
    width:100%;
    border-radius:12px;
}


/* ===================================
   TOP SELLING PRODUCTS
=================================== */

.top-selling-section {
    padding: 70px 5%;
    text-align: center;
    background: #f8f8f8;
}

.top-selling-section h2 {
    margin-bottom: 40px;
    color: #000;
}

.top-selling-section .product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.top-selling-section .home-product-link {
    display: block;
    min-width: 0;
    height: 100%;
    color: #000;
    text-decoration: none !important;
}

.top-selling-section .card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.top-selling-section .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.top-selling-section .card img {
    width: 100%;
    height: 240px;
    object-fit: contain;
    display: block;
}

.top-selling-section .card h4 {
    padding: 12px 10px;
    font-size: 16px;
    color: #000;
    text-decoration: none;
}

.top-selling-section .home-product-price {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 10px 18px;
    margin-top: auto;
}

.top-selling-section .discounted-offer-price {
    color: #111;
    font-size: 16px;
    font-weight: 700;
}

.top-selling-section .original-offer-price {
    color: #888;
    font-size: 14px;
    text-decoration: line-through;
}

.top-selling-section .offer-badge {
    padding: 4px 7px;
    border-radius: 4px;
    background: #dcfce7;
    color: #166534;
    font-size: 11px;
    font-weight: 700;
}

.top-selling-section .no-top-selling {
    color: #666;
    margin-bottom: 25px;
}

.top-selling-view-btn {
    display: inline-block;
    margin-top: 30px;
    color: #000;
    text-decoration: none;
}

/* Responsive Top Selling grid */
@media (max-width: 992px) {
    .top-selling-section .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .top-selling-section .product-grid {
        grid-template-columns: 1fr;
    }

    .top-selling-section .card img {
        height: 260px;
    }
}


/* Testimonials */

.testimonial-section{
    padding:70px 5%;
}

.testimonial-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}

.testimonial{
    border:1px solid #ddd;
    padding:20px;
    border-radius:10px;
}


.home-product-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.card img {
    width: 100%;
    height: 240px;
    object-fit: contain;
    display: block;
}

.style-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
    text-decoration: none;
    color: #ffffff;
}

.style-card img {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.style-card:hover img {
    transform: scale(1.05);
}

.style-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    background: linear-gradient(
        transparent 35%,
        rgba(0, 0, 0, 0.75)
    );
}

.style-card-overlay h3 {
    margin: 0 0 8px;
}

.style-card-overlay span {
    font-size: 13px;
}

/* Customer Reviews */

/* ===================================
   CUSTOMER REVIEWS SLIDER
=================================== */

.testimonial-section {
    padding: 70px 6%;
    background: #f8f8f8;
    overflow: hidden;
}

.testimonial-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 35px;
}

.testimonial-label {
    display: block;
    color: #805b36;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.testimonial-heading h2 {
    font-size: 28px;
    color: #171717;
    margin-bottom: 10px;
}

.testimonial-heading p {
    color: #777;
    font-size: 14px;
}

.testimonial-controls {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.testimonial-arrow {
    width: 42px;
    height: 42px;
    border: 1px solid #222;
    border-radius: 50%;
    background: #fff;
    color: #222;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s ease;
}

.testimonial-arrow:hover {
    background: #171717;
    color: #fff;
}

/* Horizontal review slider */

.testimonial-slider {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 5px 2px 15px;
}

.testimonial-slider::-webkit-scrollbar {
    display: none;
}

.testimonial {
    flex: 0 0 calc((100% - 44px) / 3);
    min-width: 0;
    padding: 25px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    scroll-snap-align: start;
    overflow-wrap: anywhere;
    display: flex;
    flex-direction: column;
}

.testimonial-stars {
    color: #f5a623;
    margin-bottom: 15px;
}

.testimonial h4 {
    margin: 0 0 8px;
    color: #222;
    font-size: 16px;
}

.review-product-name {
    color: #805b36;
    font-size: 13px;
    margin: 0 0 10px;
}

.testimonial h5 {
    margin: 8px 0;
    font-size: 15px;
    color: #222;
}

.review-comment {
    color: #555;
    line-height: 1.7;
    margin-bottom: 18px;
    font-size: 14px;
}

.testimonial small {
    color: #888;
    margin-top: auto;
}

.no-reviews {
    color: #666;
    padding: 20px 0;
}

/* Tablet */

@media (max-width: 992px) {
    .testimonial {
        flex: 0 0 calc((100% - 22px) / 2);
    }
}

/* Mobile */

@media (max-width: 576px) {
    .testimonial-section {
        padding: 45px 5%;
    }

    .testimonial-heading {
        align-items: center;
    }

    .testimonial-heading h2 {
        font-size: 21px;
    }

    .testimonial-heading p {
        font-size: 13px;
    }

    .testimonial {
        flex: 0 0 88%;
        padding: 20px;
    }

    .testimonial-arrow {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 380px) {
    .testimonial-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* ===================================
   FOOTER
=================================== */

footer {
    background: #050505;
    color: #fff;
    padding: 60px 5% 25px;
    width: 100%;
    box-sizing: border-box;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.4fr;
    gap: 40px;
    padding-bottom: 35px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.footer-col {
    min-width: 0;
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 20px;
    font-size: 22px;
}

.footer-col h4 {
    font-size: 20px;
}

.footer-col p {
    color: #cfcfcf;
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 8px;
}

/* Contact input */

.footer-input-box {
    display: flex;
    gap: 10px;
    margin: 18px 0 20px;
    width: 100%;
}

.footer-input-box input {
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: 14px 16px;
    border: none;
    outline: none;
    border-radius: 8px;
    background: #162033;
    color: #fff;
    font-size: 14px;
}

.footer-input-box input::placeholder {
    color: #9aa5b1;
}

.footer-input-box button {
    padding: 0 24px;
    border: none;
    border-radius: 8px;
    background: #22314a;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

/* Social icons */

.social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icons a {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    transition: .3s;
}

.social-icons a:nth-child(1) {
    background: #1877f2;
}

.social-icons a:nth-child(2) {
    background: #e1306c;
}

.social-icons a:nth-child(3) {
    background: #25d366;
}

.social-icons a:nth-child(4) {
    background: #0a66c2;
}

.social-icons a:hover {
    transform: translateY(-4px);
}

/* Footer bottom */

.footer-bottom {
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 13px;
    color: #cfcfcf;
}

.footer-bottom-info {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-bottom-info span {
    font-size: 13px;
    color: #cfcfcf;
    display: flex;
    align-items: center;
    gap: 8px;
}


/* Footer links */

.footer-col a {
    display: block;
    color: #cfcfcf;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: .3s;
}

.footer-col a:hover,
.footer-bottom-info a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-tagline {
    color: #fff !important;
    font-weight: 600;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-wrap: anywhere;
}

.footer-contact p i {
    min-width: 16px;
}

.footer-bottom-info a {
    color: #cfcfcf;
    font-size: 13px;
    text-decoration: none;
}


/* ===================================
   TABLET RESPONSIVE
=================================== */

@media (max-width: 992px) {

    footer {
        padding: 45px 4% 20px;
    }

    .footer-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 18px;
    }

    .footer-bottom-info {
        gap: 15px 25px;
    }
}

/* ===================================
   MOBILE RESPONSIVE
=================================== */

@media (max-width: 576px) {

    footer {
        padding: 35px 20px 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-bottom: 25px;
    }

    .footer-col h3,
    .footer-col h4 {
        font-size: 19px;
        margin-bottom: 14px;
    }

    .footer-col p {
        font-size: 13px;
    }

    .footer-input-box {
        gap: 8px;
    }

    .footer-input-box input {
        padding: 12px 10px;
        font-size: 13px;
    }

    .footer-input-box button {
        padding: 0 16px;
        font-size: 13px;
    }

    .social-icons {
        gap: 10px;
    }

    .social-icons a {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .footer-bottom {
        padding-top: 20px;
        gap: 15px;
    }

    .footer-bottom-info {
        flex-direction: column;
        gap: 12px;
    }

    .footer-bottom-info span {
        font-size: 12px;
        align-items: flex-start;
        line-height: 1.6;
        overflow-wrap: anywhere;
    }

    .footer-bottom p {
        font-size: 12px;
    }
}

/* ===================================
   SMALL MOBILE
=================================== */

@media (max-width: 360px) {

    footer {
        padding-left: 15px;
        padding-right: 15px;
    }

    .footer-input-box button {
        padding: 0 12px;
    }
}


/* Responsive */

@media(max-width:992px){

    .product-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .footer-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:768px){

    .navbar{
        flex-direction:column;
        gap:15px;
    }

    .search-box{
        width:100%;
        max-width:none;
        margin:0;
    }

    .hero-content h1{
        font-size:3rem;
        letter-spacing:5px;
    }

    .style-grid,
    .testimonial-grid,
    .footer-grid{
        grid-template-columns:1fr;
    }
}

@media(max-width:576px){

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

    .hero{
        height:400px;
    }

    .hero-content h1{
        font-size:2.3rem;
    }

    .style-section{
        margin:20px;
    }
}


/* FIX: Product card links and price styling */

.home-product-link,
.home-product-link:link,
.home-product-link:visited,
.home-product-link:hover,
.home-product-link:active {
    display: block;
    color: #111111;
    text-decoration: none !important;
}

.home-product-link .card {
    color: #111111;
}

.home-product-link .card h4 {
    color: #111111;
    text-decoration: none;
}

/* Price container */
.home-product-price {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 10px 18px;
    color: #111111;
    text-decoration: none;
}

/* Normal and discounted prices */
.home-product-price .discounted-offer-price {
    color: #111111;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

/* Original price */
.home-product-price .original-offer-price {
    color: #888888;
    font-size: 14px;
    font-weight: 400;
    text-decoration: line-through;
}

/* Discount badge */
.home-product-price .offer-badge {
    display: inline-block;
    padding: 4px 7px;
    border-radius: 4px;
    background: #dcfce7;
    color: #166534;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

/* Keep prices black when hovering over product cards */
.home-product-link:hover .home-product-price .discounted-offer-price,
.home-product-link:hover .card h4 {
    color: #111111;
    text-decoration: none;
}
