/* Body Fonts */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
}

:root {
    --primary: #800000;
    --secondary: #008080;
}

h1, h2, h3, h4 {
    color: var(--primary);
}

/* Header */
#header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

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

.company-logo{
    width: 20%;
}

.hide-desktop {
    display: none;
}

.hide-mobile {
    display: block;
}

.menu-btn, .cart-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.menu-btn i, .cart-btn i {
    color: #333333;
}

.menu-btn:hover i, .cart-btn:hover i {
    color: var(--secondary);
}

/* Desktop Menu */
.desktop-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.desktop-menu li {
    padding: 0 15px;
}

.desktop-menu a {
    text-decoration: none;
    color: #333333;
    font-size: 1.1rem;
    font-weight: 500;
}

.desktop-menu a:hover {
    color: var(--primary);
}

.menu-active {
    border-bottom: 3px solid var(--primary);
}


/* Starts */
/* Drawer Base Styles */
.drawer {
    position: fixed;
    top: 0;
    height: 100%;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    padding: 20px;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

/* Left Drawer (Menu) */
#menu {
    left: 0;
    width: 30%;
    transform: translateX(-100%);
}

/* Right Drawer (Cart) */
#cart {
    right: 0;
    width: 30%;
    transform: translateX(100%);
}

/* Responsive Drawer Width */
@media (max-width: 480px) {
    #menu, #cart {
        width: 70%;
    }
}

/* Show Drawer When Targeted */
#menu:target,
#cart:target {
    transform: translateX(0);
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: #ff0000af;
    border: none;
    color: #ffffff !important;
    cursor: pointer;
    padding: 4px 10px !important;
    border-radius: 50%;
    z-index: 2;
}

/* Menu Button */
.menu-btn {
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #007BFF;
}

/* Menu Links */
.drawer a {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    color: #000000;
    font-size: 18px;
    border-bottom: 1px solid #ddd;
}

.drawer a:hover {
    background: #f5f5f5;
}

/* Cart Items */
.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #dddddd;
}

.cart-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
}

.cart-item div {
    flex-grow: 1;
    margin-left: 10px;
}

.cart-total {
    font-size: 18px;
    font-weight: 500;
    text-align: right;
    margin-top: 10px;
}

.checkout-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: var(--primary);
    color: #ffffff !important;
    text-align: center;
    font-size: 16px;
    margin-top: 15px;
    border-radius: 5px;
    text-decoration: none;
}

.checkout-btn:hover {
    background: var(--secondary);
}

/* Ensure overlay covers the full screen and is clickable */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: none;
}

/* Show overlay when a drawer is open */
#menu:target ~ .overlay,
#cart:target ~ .overlay {
    display: block;
}

.cart-item p {
    padding-bottom: 0px!important;
}
/* Ends*/

/* Cart Button Styling */
.cart-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Cart Badge Styling */
.cart-badge {
    position: absolute;
    top: -11px;
    right: -15px;
    background: var(--secondary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 50%;
    text-align: center;
    display: inline-block;
    padding: 0px 8px;
}


/* Custom Box for distinction */
.custom-box {
    border: 2px solid #d3d3d3;
    border-radius: 15px;
    padding: 20px;
}


/* Image Title */
.image-title {
    display: flex;height: 100px;
    background-size: cover;
    background-position: center;
    align-items: center;
    align-content: center;
}

.image-title .image-title-text {
    color: #ffffff; 
    padding: 20px;
    font-size: 30px;
    width: 100%;
    height: 100px;
    background-image: linear-gradient(45deg, var(--secondary), transparent);
}

/* Slick Slider */
.slick-prev {
    left: 25px !important;
    z-index: 9999 !important;
    overflow: visible !important;
}
[dir='rtl'] .slick-prev {
    right: 25px !important;
}
.slick-next {
    right: 25px !important;
}
[dir='rtl'] .slick-next {
    left: 25px !important;
}

.head-image {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.category {
    display: flex; 
    gap: 10px; 
    flex-wrap: wrap; 
    justify-content: space-evenly;
}

.category-display {
    position: relative;
    width: 100px;
    height: 100px;
    border: 1px solid #3c3c3c;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.category-display:hover {
    font-weight: 600;
}

.section-title {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 400;
    padding-bottom: 20px;
}

.special-banner {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.special-banner-image {
    width: 350px;
}

.section-title span {
    flex-grow: 1;
    height: 2px;
    background-color: #ccc; 
    margin-left: 10px; 
}
.section-content {
    padding: 30px;
    border-radius: 15px; 
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}
.brand-slider .slide {
    padding: 20px;
}
.brand-slider .slide .brand-name {
    font-size: 15px;
    text-align: center;
}


/* Product Page and Product Card */

.product-card-shop {
    width: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px;
    justify-items: center;
}

.product-image-shop img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

.product-title-shop {
    font-size: 18px;
    font-weight: 500;
    display: block;
}

.product-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    width: 350px;
    margin-left: auto;
    margin-right: auto;
}

.product-image {
    width: 100px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f8f8;
    position: relative;
}
.product-image img, .cart-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-product-image {
    width: 50px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f8f8;
    position: relative;
}

.pay-now {
    border-radius: 10px;
    background-color: var(--primary);
    color: #ffffff;
    padding: 5px 10px;
    display: inline;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 10px 0;
}

.sale-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 7px;
    border-radius: 4px;
    z-index: 2;
}

.wishlist-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    font-size: 18px;
    color: #000000;
    z-index: 2;
}

.product-details {
    width: 100%;
    padding: 10px 0 20px 0;
}
.product-title {
    font-size: 16px;
    font-weight: 500;
    display: block;
}

.price {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.regular-price {
    color: var(--secondary);
    font-weight: 700;
}

.sale-price {
    text-decoration: line-through;
    color: #808080;
    font-size: 14px;
}

.final-price {
    color: #808080;
    font-size: 14px;
}

.regular-price::before, .sale-price::before, .final-price::before {
    content: "\20B9"; 
    margin-right: 4px;
    font-weight: 600;
}

.stars {
    padding-bottom: 0px;
}

.stars {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ratings {
    color: #ffd700;
}

.no-ratings {
    color: #474747;
}

.quantity-cart {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #cccccc;
    border-bottom: 1px solid #cccccc;
}
.quantity button {
    padding: 4px 8px;
    border-left: 1px solid #cccccc;
    border-right: 1px solid #cccccc;
    background: #f8f8f8;
    cursor: pointer;
}

.product-quantity-cart {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.product-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #cccccc;
    border-bottom: 1px solid #cccccc;
}
.product-quantity button {
    padding: 4px 8px;
    border-left: 1px solid #cccccc;
    border-right: 1px solid #cccccc;
    background: #f8f8f8;
    cursor: pointer;
}

.read-reviews {
    text-decoration: underline; 
}

.read-reviews:hover {
    background-color: var(--primary);
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 500;
    color: #ffffff;
}
.read-reviews:hover i{
    color: #ffffff;
}

.add-to-cart {
    padding: 8px;
    background: #000000;
    color: #ffffff;
    cursor: pointer;
    font-weight: 600;
    border-radius: 4px;
}
.add-to-cart:hover {
    background-color: var(--primary);
}
.add-to-cart:hover i{
    color: #ffffff;
}

.highlights {
    background-color: #f8f9fa;
    padding-top: 40px;
    padding-bottom: 40px;
    color: #000000;
}

.highlights-wrap {
    display: flex;
    position: relative;
    gap: 20px;
    width: 100%;
    justify-content: space-between;
}

.highlight-card {
    width: 300px;
    border-radius: 10px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.icon-box i {
    font-size: 30px;
    color: var(--secondary);
    padding-top: 6px;
}

.content h5 {
    padding-bottom: 0px;
}

.content p {
    padding-bottom: 10px;
}

/* Footer */
footer {
    background: rgb(0, 0, 0);
    background: linear-gradient(0deg, rgba(0,0,0,1) 0%, var(--primary) 100%);
    color: #d1d1d1;
}

.footer-wrap {
    display: flex;
    padding: 40px 10px 20px 10px;
    border-bottom: 1px solid #5e5e5e;
    margin-bottom: 20px;
}

.footer-card {
    margin: 0 20px;
    width: 33%;
}

.footer-social {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
}

.footer-social i {
    display: flex;
    gap: 10px;
    font-size: 25px;
    border-radius: 15px;
    color: #d1d1d1;
    box-shadow: rgba(255, 255, 255, 0.2) 0px 2px 8px 0px;
}

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

.footer-card li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
}

.footer-card li::before {
    content: "\f058"; 
    font-family: "Font Awesome 6 Free"; 
    font-weight: 900;
    color: #d1d1d1;
    position: absolute;
    left: 0;
    top: 0;
 }

 .footer-card li a {
    color: #d1d1d1;
 }

 .footer-card li a:hover {
    color: #d1d1d1;
    text-decoration: none;
 }

 .footer-icons i {
    color: #d1d1d1;
 }

 /* Scroll to Top */
 
 #scrollTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background-color: #ffffff;
    color: #5e5e5e;
    border: 1px solid #d1d1d1;
    padding: 12px 18px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: opacity 0.3s;
}

#scrollTopBtn:hover {
    background-color: var(--secondary);
    color: var(--primary);
    border: 2px solid var(--primary);
}

/* Checkout Page*/
.remove {
    border-radius: 10px;
    background-color: #f8f9fa;
    padding: 5px 10px;
    display: inline;
    cursor: pointer;
}

.checkout-form {
    display: flex;
    gap: 20px;
}
.cart-products {
    width: 100%;
    height: 400px;
    border-top: 1px solid #333333;
    border-bottom: 1px solid #333333;
    overflow-y: auto;
    padding: 10px 0;
    border-radius: 12px;
}

.totals {
    padding: 10px 20px;
    font-size: 15px;
    border: 1px solid #333333;
    border-radius: 15px;
    margin-top: 10px;
}
.cart-subtotal {
    display: flex;
    flex-direction: column; 
    gap: 10px; 
}

.tax {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    width: 100%; 
}

.tax span::before {
    content: "\20B9 "; /* Unicode for ₹ symbol */
    font-weight: 600; 
}

.total {
    border-top: 1px solid #333333;
    margin-top: 10px;
    padding-top: 10px;
    font-size: 20px;
}

.label-wrap > input:not(:placeholder-shown) + label {
    background-color: #ffffff;
    padding: 2px 10px;
    border-radius: 5px;
    margin: 3px 0;
    border: 1px solid #797979;
}

/* Product Page */
.thumbnail-slider { 
    max-width: 100%; 
    margin: 10px auto; 
    overflow: hidden; 
}

.thumbnail-slider img { 
    max-width: 100%; 
    height: auto; 
    border-radius: 5px; 
}

.page-product-container { 
    width: 96%; 
    margin: auto; 
    display: flex; 
    flex-wrap: wrap; 
    align-items: flex-start; 
    gap: 20px;
}

.full.lg-sticky { 
    position: sticky; 
    top: 20px; 
    max-height: 90vh; /* Ensures it doesn’t take the whole screen */
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    overflow-y: auto; /* Enables scrolling if content exceeds viewport height */
    gap: 10px;
}

.page-product-images { 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}

.page-product-images img { 
    object-fit: contain; 
    width: 400px; 
    height: 500px; 
    border: 1px solid #d3d3d3; 
    border-radius: 10px; 
}

.page-product-thumbnails { 
    display: flex; 
    flex-wrap: nowrap; 
    justify-content: center; 
    gap: 5px; 
    max-width: 100%; 
    overflow-x: auto; /* Enables horizontal scrolling if there are too many thumbnails */
    padding: 5px 0;
}

.page-product-thumbnails img { 
    width: 80px!important; 
    height: 80px; 
    cursor: pointer; 
    border-radius: 10px; 
    object-fit: cover; 
    border: 1px solid #d3d3d3; 
}

.page-product-thumbnails .slick-slide {
    margin: 0 5px; /* Adjust the value to control the spacing */
}

.page-product-thumbnails .slick-list {
    margin: 0 -5px; /* Negative margin to prevent layout shift */
}

.page-product-details { 
    flex: 1;
    padding: 20px !important;
}

.p-section { 
    border: 2px solid #d3d3d3; 
    border-radius: 15px; 
}

.page-product-details .page-product-title { 
    padding-bottom: 10px; 
}

.brand-name {
    border-bottom: 1px solid #959595;
    padding-bottom: 10px;
    font-weight: 500;
}

.divider { 
    padding: 10px; 
}

.variation-section { 
    border-radius: 10px; 
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px; 
    align-items: center; 
}

.variation-single { 
    border-radius: 5px; 
    padding: 0 10px; 
    background-color: #000000; 
    color: #ffffff; 
    font-weight: 400; 
}

.variation-single:hover {
    background-color: var(--secondary);
}

.variation-selected {
    border-radius: 5px; 
    padding: 2px 10px; 
    background-color: var(--primary); 
    color: #ffffff; 
    font-weight: 600; 
}

.variation-selected:hover { 
    background-color: #000000; 
    font-weight: 600; 
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .page-product-container { 
        flex-direction: column; 
    }

    .full.lg-sticky { 
        position: relative; /* Remove stickiness on smaller screens */
        max-height: unset;
    }

    .page-product-images img { 
        width: 100%; 
        height: auto; 
    }

    .page-product-thumbnails { 
        overflow-x: auto;
    }

    .divider { 
        padding: 5px; /* Fixed Typo */
    }
} 

    /* Default: Single Column */
    .columns {
        display: grid;
        gap: 16px;
        grid-template-columns: 1fr;
    }

    /* Small devices (≥576px) */
    @media (min-width: 576px) {
        .col-sm-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 12px; }
        .col-sm-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
        .col-sm-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
        .col-sm-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
    }

    /* Medium devices (≥768px) */
    @media (min-width: 768px) {
        .col-md-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 10px; }
        .col-md-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
        .col-md-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
        .col-md-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
    }

    /* Large devices (≥1024px) */
    @media (min-width: 1024px) {
        .col-lg-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 8px; }
        .col-lg-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
        .col-lg-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
        .col-lg-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    }

    /* Extra Large devices (≥1440px) */
    @media (min-width: 1440px) {
        .col-xl-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 6px; }
        .col-xl-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
        .col-xl-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
        .col-xl-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
    }


/* Responsive Adjustments */
@media (max-width: 1250px) {
    .lg-sticky {
        position: sticky;
    }
}

@media (max-width: 480px) {
    .company-logo{
        width: 80%;
        padding: 0 30px;
    }    
    .head-image {
        flex-wrap: wrap;
    }
    .quantity-cart {
        flex-wrap: wrap;
    }
    .product-quantity-cart {
        flex-wrap: wrap;
    }
    .highlights-wrap {
        flex-wrap: wrap;   
    }
    .footer-card {
        margin: 0 0 40px 0;
        width: 100%;
    }
    .footer-wrap {
        flex-wrap: wrap;
    }
    .checkout-form {
        flex-wrap: wrap;
        flex-direction: column-reverse;
    }
    .checkout-form .two-thirds {
        width: 100%;
    }
    .checkout-form .one-third {
        width: 100%;
    }
    .page-product-details {
        margin-top: 20px;
    }
    .product-card {
        width: 330px;
    }
    .cart-products {
        height: 250px;
    }
    .hide-mobile {
        display: none;
    }
    .hide-desktop {
        display: block;
    }
    .special-banner {
        gap: 2px;
    }
    .special-banner-image {
        width: 190px;
    }
    .custom-box {
        margin-bottom: 20px;
    }
}