@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Syne:wght@400..800&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.success-message {
    position: absolute;
    top: 0;
    background-color: #28a745;
    color: white;
    padding: 12px;
    text-align: center;
    border-radius: 5px;
    margin: 10px auto;
    width: 90%;
    max-width: 400px;
    font-weight: bold;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    background-color: #f8f8f4;
    max-width: 100vw;
    overflow-x: hidden;
}

.nav {
    background: rgb(17, 17, 17);
}

.container {
    max-width: 1440px !important;
}

section {
    display: flex;
    flex-direction: column;
    gap: 64px;
    margin: 0 auto;
}

.section-heading {
    color: black;
    font-size: 3rem;
    text-align: center;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #111;
    border-radius: 2px;
}

::-webkit-scrollbar-thumb {
    background-color: #333;
    border-radius: 2px;
    border: 2px solid #111;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

:root {
    --font_3: normal normal normal calc(37* var(--theme-spx-ratio)) / 1.1em syne, sans-serif;
    --color_15: 253, 253, 253;
    --theme-spx-ratio: var(--scaling-factor) / 1280;
    --one-unit: 1cqw;
    --section-max-width: 9999px;
    --scrollbar-width: 17px;
    --scaling-factor: min((100* var(--one-unit)), var(--section-max-width));
    --font_4: normal normal normal 16px / 1.1em syne, sans-serif;
}

.font-4 {
    font: var(--font_4);
    color: rgb(var(--color_15));
    letter-spacing: 0em;
}

.font-3 {
    text-decoration: none;
    font: var(--font_3);
    color: rgb(var(--color_15));
    letter-spacing: 0em;
    font-size: max(28px, min(37px, calc(37* var(--theme-spx-ratio))));
}

.background-video {
    max-width: 100vw;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero {
    position: relative;
    height: 60vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-heading {
    color: white;
    font-size: max(0.5px, 0.0534083 * (var(--scaling-factor) - var(--scrollbar-width)));
    font-family: "Syne", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.hero-category-wrapper {
    padding: 12px 24px;
    background-color: rgba(0, 0, 0, 0.3);
    width: 75%;
    position: absolute;
    left: 50%;
    bottom: 10%;
    transform: translateX(-50%);
    border-radius: 8px;
}

.hero-category p {
    font-size: 18px;
    margin: 0;
    color: #ffffffad;
}

.hero-category p:hover {
    color: white;
}

.hero-category {
    padding: 16px;
    margin-bottom: 0px !important;
    display: flex;
    border-right: 1px solid rgba(255, 255, 255, 0.726);
}

.top-heading {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-family: "Syne", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-size: min(29px, max(0.5px, 0.02*(var(--scaling-factor) - var(--scrollbar-width))));
}

@media screen and (max-width: 768px) {
    .hero {
        height: 75vh;
    }
    .hero-heading {
        text-align: center;
        font-size: max(0.5px, 0.1025641 * (var(--scaling-factor) - var(--scrollbar-width))) !important;
    }
    .top-heading {
        font-size: min(14px, max(0.5px, 0.0358974 * (var(--scaling-factor) - var(--scrollbar-width)))) !important;
    }
    .service-block {
        border: none;
        flex-direction: column;
        gap: 32px;
    }
    .left-service,
    .right-service {
        padding-bottom: 2rem;
        padding-left: 12px;
        border-left: 1px solid white;
        border-right: none;
    }
}


/* ---------------------------------------------------- NEW ---------------------------------------------------- */

.row {
    display: flex;
}

.item {
    position: relative;
    width: 33.33% !important;
    overflow: hidden;
    cursor: pointer;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.item img {
    filter: brightness(0.8);
    width: 100%;
    height: auto;
    display: block;
}

.label {
    position: absolute;
    bottom: 20px;
    transform: translateX(-50%);
    left: 50%;
    color: white;
    font-size: 3rem;
    z-index: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    color: white;
    z-index: 99;
}

.overlay .text {
    font-size: 24px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.item:hover .overlay {
    opacity: 1;
}

.item:hover .overlay .text {
    opacity: 1;
    transform: translateY(0);
}


/* mini-categoires */

.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.image-container img {
    width: 100%;
    height: auto;
    min-height: 255px;
    max-height: 255px;
    object-fit: cover;
    filter: brightness(0.7);
    transition: transform 0.7s ease, filter 0.7s ease;
}

.mini-overlay {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    font-size: 1.2rem;
    opacity: 1;
    transition: opacity 0.7s ease;
}

.image-container:hover img {
    cursor: pointer;
    filter: brightness(1);
    transform: scale(1.1);
}

.image-container:hover .mini-overlay {
    opacity: 0;
}


/* inner page */


/* Grid container spacing */

.container {
    padding: 20px;
    display: flex;
}



/* 🛒 Product Card Styling */

.product-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    height: 100%;
}

.product-card:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.18);
}


/* 🖼️ Product Image */

.product-image {
    width: 100%;
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 10px;
    background: #f8f8f8;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 10px;
}


/* 🏷️ Product Title */

.product-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-top: 10px;
}


/* 🏷️ Brand Name */

.product-brand {
    font-size: 12px;
    color: #666;
}


/* 💲 Price Styling */

.product-price {
    font-size: 16px;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 10px;
}


/* 🔘 Product Buttons */

.product-buttons {
    display: flex;
    justify-content: center;
    /* flex-direction: column; */
    gap: 8px;
    margin-top: 10px;
    width: fit-content;
    margin: 0 auto;
    /* width: 100%; */
}


/* 🔘 Universal Button Style */

.product-buttons .btn {
    flex: 1;
    font-size: 13px;
    font-weight: bold;
    border-radius: 8px;
    padding: 10px 12px;
    transition: 0.3s ease-in-out;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    white-space: nowrap;
}


/* 🔍 View Button */

.product-buttons .view-button {
    background-color: #007bff;
    color: white;
}

.product-buttons .view-button:hover {
    background-color: #0056b3;
}


/* 🛒 Add to Cart Button */

.product-buttons .add-to-cart {
    background-color: #ff9800;
    color: white;
}

.product-buttons .add-to-cart:hover {
    background-color: #e68900;
}


/* 🖥️ Responsive Styling */

@media (max-width: 768px) {
    .product-buttons {
        flex-direction: column;
        gap: 6px;
    }
}

.btn-cart-icon {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.btn-cart-icon:hover {
    background-color: #0056b3;
}


/* product inner */

.main-image {
    display: flex;
}

.main-image img {
    max-width: 450px;
    max-height: 380px;
    margin: 0 auto;
    object-fit: contain;
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.thumbnail {
    width: 60px;
    height: 60px;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-right: 8px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.thumbnail:hover {
    transform: scale(1.1);
    border-color: #ffc107;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.d-flex.justify-content-center {
    gap: 10px;
    padding-top: 10px;
}

.carousel-control-prev,
.carousel-control-next {
    border: none;
    background: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    margin-top: auto;
    margin-bottom: auto;
}

.text-success.display-4 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 15px;
}

.btn-warning {
    color: #fff;
    background-color: #ffc107;
    border-color: #ffc107;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    box-shadow: 0 6px 16px rgba(255, 193, 7, 0.6);
}

#quantity {
    max-width: 60px;
    text-align: center;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 1.75rem;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #333;
}

.text-muted {
    font-size: 0.9rem;
    color: #777;
}

#product-description h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-top: 40px;
}

#product-description p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.f {
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* Old Price Style */

.price-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.old-price {
    font-size: 1.25rem;
    font-weight: normal;
    color: #999;
    text-decoration: line-through;
    margin-right: 10px;
}

.container {
    max-width: 900px;
    margin: auto;
    padding: 20px;
}

.d-flex.align-items-center {
    margin-top: 15px;
}

.car {
    display: flex;
    flex-direction: column;
    gap: 32px;
}


/* carousels */

.carousel-inner {
    display: flex;
}

.carousel-item {
    transition: transform 0.5s ease, height 0.5s ease;
}

.carousel-item .row {
    display: flex;
    justify-content: space-between;
}

.carousel-item .col-lg-2 {
    display: flex;
    align-items: stretch;
    padding: 10px;
}

.card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card img {
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}

.card-body {
    text-align: center;
    padding: 15px;
}

.card h6 {
    text-align: center;
    max-width: 80%;
    margin: 0 auto;
    font-size: 16px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.carousel-controls {
    text-align: center;
    margin-top: 15px;
}

@media (max-width: 1680px) {
    .hero-category-wrapper {
        zoom: 0.8
    }
}


/* Cart Drawer */

.cart-drawer {
    z-index: 9999;
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.3);
    transition: right 0.4s ease-in-out;
    padding: 20px;
    display: flex;
    flex-direction: column;
    border-left: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px 0 0 15px;
}

.cart-drawer.open {
    right: 0;
}


/* 🏠 Cart Header */

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.cart-header h4 {
    margin: 0;
    font-size: 22px;
}

.cart-header button {
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    transition: 0.3s;
}

.cart-header button:hover {
    transform: scale(1.1);
    color: #ff4d4d;
}


/* 📜 Cart Content */

.cart-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px 0;
}


/* 🏷️ Cart List */

.cart-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}


/* 🏷️ Cart Item */

.cart-content li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 10px;
}

.cart-content li img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cart-item-info {
    flex-grow: 1;
    padding: 0 10px;
    font-size: 16px;
}


/* 🔼🔽 Quantity Controls */

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

.cart-actions button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 5px 10px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.cart-actions button:hover {
    background: rgba(255, 255, 255, 0.4);
}

.cart-actions span {
    font-size: 16px;
    font-weight: bold;
}


/* 💳 Cart Buttons */

.cart-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-top: 15px;
}

.cart-buttons .btn {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 10px;
    transition: 0.3s;
}

.btn-danger:hover {
    background-color: #ff3333;
}

.btn-success:hover {
    background-color: #28d17b;
}

#cart-total {
    color: white;
    font-size: 1.5rem;
}


/* 🌚 Dark Overlay */

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 9999;
}

.cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cart-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-size: 16px;
    font-weight: bold;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
    z-index: 9999;
}

.cart-notification.show {
    opacity: 1;
    visibility: visible;
}