:root {
    --primary-blue: #071835;
    --light-highlight: #b5cbf0;
    --dark-navy: #071835;
    --deep-background: #010813;
    --text-main: #01060e;
    --white: #ffffff;
    --black: #000000;
    --gray-bg: #f3f4f6;
    --gray-border: #e5e7eb;
    --text-muted: #6b7280;
    --container-width: 1540px;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--gray-bg);
    color: var(--text-main);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 35px 20px;
}

/* Top Banner */
.top-bar {
    background: var(--deep-background);
    color: var(--white);
    font-size: 11px;
    padding: 6px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.promo-text {
    color: var(--light-highlight);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Section */

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 123%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 95%;
    z-index: -1;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
}

.btn-shop {
    display: inline-block;
    margin-top: 30px;
    background: var(--dark-navy);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: 0.3s;
}

.btn-shop:hover {
    background: var(--light-highlight);
    color: var(--dark-navy);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 13px;
    margin-top: 40px;
    margin-left: 40px;
    margin-right: 40px;
}

.card,
.hidden-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid transparent;
    transition: 0.2s;
}

.card:hover,
.hidden-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-5px);
}

.card-img,
.hidden-card .card-img {
    position: relative;
    aspect-ratio: 1/1;
    background: #eee;
}

.card-img img,
.hidden-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--primary-blue);
    color: var(--white);
    font-size: 10px;
    padding: 4px 8px;
    border-bottom-right-radius: 8px;
}

.card-body {
    padding: 12px;
}

.product-title {
    font-size: 12px;
    color: var(--text-muted);
    height: 32px;
    overflow: hidden;
}

.price {
    font-size: 18px;
    font-weight: bold;
    color: var(--dark-navy);
    margin: 8px 0;
}

/* Footer */
footer {
    background: var(--white);
    border-top: 1px solid var(--gray-border);
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-muted);
}
.footer-logo {
    width: 98px;
    height: auto;
    display: inline-block;
}

.newsletter {
    display: flex;
}

.newsletter input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--gray-border);
}

.newsletter button {
    background: var(--dark-navy);
    color: var(--white);
    border: none;
    padding: 0 20px;
}

.container.hero-content {
    position: relative;
    left: -345px;
    margin-top: 100px;
}
.show-more-btn {
    background-color: var(--dark-navy);
    border: 1px solid var(--dark-navy);
    color: var(--white);
    padding: 12px 40px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 681px;
    margin-top: 30px;
}

.sold-count {
    font-size: 10px;
    color: var(--text-muted);
}

.badge-premium {
    background: var(--black) !important;
}
.badge-bestseller {
    background: var(--dark-navy) !important;
}

.copyright-text {
    text-align: center;
    margin-top: 40px;
    font-size: 12px;
    color: #aaa;
}

.show-more-btn:hover {
    background-color: var(--light-highlight);
    border-color: var(--light-highlight);
    color: var(--dark-navy);
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 6px 0;
}

.card-rating .stars {
    color: var(--light-highlight);
    font-size: 13px;
}

.card-rating .rating-text {
    font-size: 12px;
    color: #777;
}

.badge-top-rated {
    background-color: var(--dark-navy) !important;
    color: white;
}

.product-tab-content {
    display: none;
}

.product-tab-content.active {
    display: grid;
}

.footer-contact-info {
    font-size: 13px;
    margin-top: 10px;
    color: #666;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    margin-right: 10px;
    text-decoration: none;
}

.copyright-section {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
}

/* Navigation Dropdown Styles */
.nav-ribbon {
    position: relative;
    z-index: 1000 !important;
    background: var(--white);
    overflow: visible !important;
}

.nav-ribbon .container {
    overflow: visible !important;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 9999 !important;
    background: #fff;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

.hero {
    position: relative;
    z-index: 1 !important;
    height: 500px;
    display: flex;
    align-items: center;
    color: var(--white);
}

.dropdown-content a {
    color: var(--text-main);
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background-color: #f8f8f8;
    color: var(--dark-navy);
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Rotate icon on hover */
.dropdown:hover .dropbtn i {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.sold-cart-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.cart-box {
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.cart-box:hover {
    background: #e6f4ea;
}

.cart-img {
    width: 25px;
}

/* Quantity Control Styles */
.qty-controls {
    display: none;
    align-items: center;
    gap: 10px;
    background: #f8f8f8;
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid #ddd;
}

.qty-btn {
    background: var(--dark-navy);
    color: white;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
}

.qty-val {
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.minus {
    left: -2px;
    top: 50%;
    transform: translateY(65%);
}

.plus {
    right: -2px;
    top: 50%;
    transform: translateY(65%);
}

/* Hover effect */
.qty-overlay-btn:hover {
    background: var(--light-highlight);
    color: var(--dark-navy);
}

.supplier-info {
    font-size: 10px;
    margin-top: 4px;
    margin-bottom: 8px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 4px;
}

.supplier-label {
    color: #888;
}

.supplier-name {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 400;
    font-size: 10px;
}

.supplier-name:hover {
    text-decoration: underline;
}

.supplier-location {
    color: #999;
    font-size: 10px;
}

.scroll-container-wrapper {
    position: relative;
    width: 100%;
    padding: 0 40px;
    box-sizing: border-box;
}

.horizontal-grid {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 15px;
    padding: 20px 0;
    scrollbar-width: none;
}

.horizontal-grid::-webkit-scrollbar {
    display: none;
}

.Explorecard {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 269px;
    height: 437px;
}

.scrollbtn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: var(--dark-navy);
    border: 1.5px solid var(--dark-navy);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 16px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.scrollbtn:hover {
    background: var(--light-highlight);
    border-color: var(--light-highlight);
    color: var(--dark-navy);
}

.prev-btn {
    left: 16px;
}

.next-btn {
    right: 16px;
}

.card-body,
.hidden-card .card-body {
    padding: 12px;
}

.main-explore-container {
    background: #f9f9f9;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 20px 1px;
    padding: 3px;
    position: relative;
    height: 590px;
}

.card-rating .stars {
    display: flex;
    gap: 2px;
}

.card-rating .stars i {
    font-size: 10px;
}

.hidden-card {
    display: none !important;
}
@media (max-width: 1024px) {
    .Explorecard {
        min-width: calc(33.33% - 10px);
    }
}

@media (max-width: 600px) {
    .Explorecard {
        min-width: calc(50% - 10px);
    }
}

@media screen and (max-width: 768px) {
    .scroll-container-wrapper {
        padding: 0 15px;
    }

    .horizontal-grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .prev-btn {
        left: 0px;
    }

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

    .scrollbtn {
        width: 23px;
        height: 23px;
        cursor: pointer;
        z-index: 10;
        font-size: 16px;
    }
}

@media (max-width: 1024px) {
    .container.hero-content {
        left: 0;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 350px;
        text-align: center;
    }

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

    .hero-content p {
        font-size: 1rem;
        margin: 0 auto 20px auto;
    }

    .container.hero-content {
        left: 0;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-left: -20px !important;
        padding: 0 !important;
        margin-right: -20px !important;
    }

    .show-more-btn {
        margin-left: auto;
        margin-right: auto;
        display: block;
        width: fit-content;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
    }

    .newsletter {
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .price {
        font-size: 16px;
    }
    .product-title {
        font-size: 11px;
    }
}

/* Mobile layout */
@media (max-width: 768px) {
    .footer-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    /* Logo */
    .footer-logo {
        width: 25%;
        text-align: center;
        margin-right: -288px;
        margin-top: -37px;
    }

    /* Col1 full width */
    .footer-col:first-child {
        width: 100%;
    }

    /* Col2 & Col3 */
    .footer-col:nth-child(2),
    .footer-col:nth-child(3) {
        width: 48%;
        font-size: 12px;
    }

    /* Col4 center below */
    .footer-col:nth-child(4) {
        width: 60%;
        text-align: center;
        margin-top: 5px;
    }

    /* Text adjust */
    .footer-col h4 {
        font-size: 13px;
        margin-bottom: 5px;
    }

    .footer-col ul li {
        font-size: 11px;
        line-height: 1.4;
    }
    .footer-contact-info {
        font-size: 12px;
        margin-top: 10px;
        color: #666;
        margin-bottom: 18px;
    }
    .footer-contact-info i {
        color: var(--dark-navy);
        margin-right: 8px;
        width: 16px;
    }

    .newsletter input {
        width: 100%;
        font-size: 11px;
        padding: 4px;
    }

    .newsletter button {
        font-size: 11px;
        padding: 4px 6px;
    }

    .social-links {
        justify-content: center;
    }

    .social-icon {
        font-size: 12px;
    }
}