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

/* ===== Global ===== */
body {
    font-family: 'Inter', sans-serif !important;
    background: var(--ws-bg) !important;
    padding-top: 124px !important;
    color: #212529;
}

body.has-announcement {
    padding-top: 124px !important;
}

h1, h2, h3, h4, h5, h6,
.section-title,
.header-title {
    font-family: 'Titillium Web', sans-serif !important;
}

/* ===== Top Bar ===== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 48px;
    background: var(--ws-navy-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: #fff;
    z-index: 10000;
}

.topbar-container {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bar-left ul,
.bar-right ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bar-left li > a {
    height: 34px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.72) !important;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 600;
    border-radius: 7px;
    transition: 0.2s ease;
}

.bar-left li > a:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff !important;
}

.top-login-btn,
.top-account-btn {
    height: 34px;
    padding: 0 14px;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    color: #fff !important;
    background: var(--ws-green);
    border: 1px solid #299d5e;
    border-radius: 7px;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 7px rgba(30, 130, 76, 0.18);
    transition: 0.2s ease;
}

.top-login-btn:hover,
.top-account-btn:hover {
    background: var(--ws-green-hover);
    color: #fff !important;
    transform: translateY(-1px);
}

.top-register-btn {
    height: 34px;
    padding: 0 13px;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 7px;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 700;
    transition: 0.2s ease;
}

.top-register-btn:hover {
    background: rgba(255, 255, 255, 0.13);
    color: #fff !important;
}

/* ===== Announcement / Campaign ===== */
.announcement {
    position: fixed;
    top: 48px;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: linear-gradient(90deg, var(--ws-green), #449ee1) !important;
    border-bottom: none !important;
}

body.has-announcement {
    padding-top: 172px !important;
}

body.has-announcement .websoft-nav.nav-bar {
    top: 96px;
}

/* Override app.css sticky when announcement present */
.announcement ~ .websoft-nav.nav-bar {
    position: fixed !important;
}

/* ===== Navbar (layout in header.css) ===== */
.websoft-nav .nav-bar .link,
.websoft-nav .drop-down .drop-down-btn {
    font-family: 'Inter', sans-serif !important;
}

.websoft-nav .link-btn .btn-outline-primary {
    color: var(--ws-navy) !important;
    border: 1.5px solid var(--ws-navy) !important;
    background: transparent !important;
}

.websoft-nav .link-btn .btn-outline-primary:hover {
    background: var(--ws-navy) !important;
    color: #fff !important;
}

.websoft-nav .link-btn .btn-primary {
    background: var(--ws-green) !important;
    border-color: var(--ws-green) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(30, 130, 76, 0.25);
}

.websoft-nav .link-btn .btn-primary:hover {
    background: var(--ws-green-hover) !important;
    border-color: var(--ws-green-hover) !important;
}

@media (max-width: 1399.98px) {
    body {
        padding-top: 76px !important;
    }

    body.has-announcement {
        padding-top: 124px !important;
    }

    body.has-announcement .websoft-nav.nav-bar {
        top: 48px;
    }

    .top-bar {
        display: none;
    }

    .websoft-nav.nav-bar {
        top: 0;
    }

    .announcement {
        top: 0;
    }

    body.has-announcement .websoft-nav.nav-bar {
        top: 48px;
    }

    .websoft-nav .nav-bar-menu {
        z-index: 10001 !important;
    }
}

/* ===== Hero ===== */
.header.header-image::before {
    background: linear-gradient(135deg, rgba(13, 23, 38, 0.88), rgba(33, 58, 91, 0.82), rgba(30, 130, 76, 0.55)) !important;
}

.header-title,
.header-title-home {
    color: #fff !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.header-text {
    color: rgba(255, 255, 255, 0.88) !important;
}

.header-search {
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15) !important;
}

.header-search .form-control {
    border: none !important;
    height: 58px;
    padding-left: 20px;
    font-size: 15px;
}

.header-search .btn-primary {
    background: linear-gradient(90deg, var(--ws-green), #449ee1) !important;
    border: none !important;
    height: 58px;
    padding: 0 28px !important;
    font-weight: 700;
    border-radius: 0 !important;
}

/* ===== Sections ===== */
.section {
    background: transparent;
}

.section-inner {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 8px 30px rgba(33, 58, 91, 0.06);
    border: 1px solid rgba(33, 58, 91, 0.06);
}

.section-title {
    color: var(--ws-navy) !important;
    font-weight: 700 !important;
    position: relative;
    padding-bottom: 14px;
}

.text-center .section-title::after,
.section-header.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 64px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ws-green), #449ee1);
}

.section-text {
    color: #6c757d !important;
}

.btn-outline-primary {
    color: var(--ws-green) !important;
    border-color: var(--ws-green) !important;
}

.btn-outline-primary:hover {
    background: var(--ws-green) !important;
    color: #fff !important;
}

.btn-primary {
    background: var(--ws-green) !important;
    border-color: var(--ws-green) !important;
}

.btn-primary:hover {
    background: var(--ws-green-hover) !important;
    border-color: var(--ws-green-hover) !important;
}

/* ===== Product Cards ===== */
.item {
    border: 1px solid rgba(33, 58, 91, 0.08) !important;
    border-radius: 20px !important;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(33, 58, 91, 0.06) !important;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    background: #fff !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(33, 58, 91, 0.12) !important;
    border-color: rgba(30, 130, 76, 0.18) !important;
}

.item-header {
    position: relative;
    overflow: hidden;
}

.item-img {
    display: block;
    overflow: hidden;
}

.item-img img {
    border-radius: 0 !important;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.item:hover .item-img img {
    transform: scale(1.04);
}

.item-content {
    padding: 16px 18px 18px !important;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
}

.item-title {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    min-height: 2.8em;
}

.item-title a {
    color: #000 !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.item-title a:hover {
    color: var(--ws-green) !important;
}

.item-price-block {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.item-badge {
    top: 12px !important;
    left: 12px !important;
    right: auto !important;
    padding: 6px 12px !important;
    border-radius: 999px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.item-badge-sale {
    background: linear-gradient(135deg, #1e824c, #26a35f) !important;
    color: #fff !important;
}

.item-price {
    margin: 0 !important;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.item-price-through {
    font-size: 0.9rem !important;
    color: #94a3b8 !important;
    text-decoration: line-through;
}

.item-price-amount {
    color: var(--ws-green) !important;
    font-weight: 800 !important;
    font-size: 1.25rem !important;
    letter-spacing: -0.02em;
}

.item-sales {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 600;
}

.item-meta {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px !important;
    padding: 0 !important;
    border: none !important;
    width: 100% !important;
}

.item-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(243, 247, 254, 0.9);
    border: 1px solid rgba(33, 58, 91, 0.08);
    color: #213a5b;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.item-chip i {
    color: var(--ws-green);
    font-size: 0.72rem;
}

.item-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px !important;
    margin-top: auto;
    width: 100% !important;
}

.item-actions form {
    display: contents;
}

.btn-item-cart,
.btn-item-details {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    border: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-item-cart {
    background: var(--ws-green) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(30, 130, 76, 0.25);
}

.btn-item-cart:hover {
    background: var(--ws-green-hover) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(30, 130, 76, 0.32);
}

.btn-item-details {
    background: rgba(33, 58, 91, 0.06) !important;
    color: #213a5b !important;
    border: 1px solid rgba(33, 58, 91, 0.1) !important;
}

.btn-item-details:hover {
    background: #213a5b !important;
    color: #fff !important;
    transform: translateY(-1px);
}

/* Legacy button overrides */
button.btn.btn-outline-primary.btn-md.btn-padding,
.item .btn-outline-primary.btn-md {
    background: var(--ws-green) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
}

a.btn.btn-outline-secondary.btn-md.btn-padding,
.item .btn-outline-secondary.btn-md {
    background: rgba(33, 58, 91, 0.06) !important;
    color: #213a5b !important;
    border: 1px solid rgba(33, 58, 91, 0.1) !important;
    border-radius: 12px !important;
}

.easy-setup,
.responsive {
    border: none !important;
    width: auto !important;
    padding: 0 !important;
}

/* ===== Best Selling Section ===== */
.best-selling-section .section-inner {
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(33, 58, 91, 0.06);
    box-shadow: 0 8px 32px rgba(33, 58, 91, 0.06);
}

.best-selling-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(33, 58, 91, 0.08);
}

.best-selling-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ws-green);
    margin-bottom: 8px;
}

.best-selling-section .section-title {
    color: #000 !important;
    font-size: clamp(1.4rem, 2.5vw, 1.85rem) !important;
    font-weight: 800 !important;
    text-transform: none !important;
    letter-spacing: -0.03em;
    padding-bottom: 0 !important;
}

.best-selling-section .section-title::after {
    display: none;
}

.best-selling-section .section-text {
    color: #64748b !important;
    font-size: 0.92rem;
    max-width: 520px;
}

.btn-best-selling-view {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 999px;
    background: rgba(30, 130, 76, 0.08);
    border: 1px solid rgba(30, 130, 76, 0.2);
    color: var(--ws-green) !important;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-best-selling-view:hover {
    background: var(--ws-green) !important;
    border-color: var(--ws-green) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.best-selling-section .item-card-modern {
    border-radius: 18px !important;
}

@media (max-width: 991.98px) {
    .best-selling-section .section-inner {
        padding: 22px;
    }

    .best-selling-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 575.98px) {
    .item-actions {
        grid-template-columns: 1fr;
    }

    .item-chip {
        font-size: 0.7rem;
    }
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(to bottom, #365782, #315078, #2b486e, #264165, #213a5b) !important;
    color: rgba(255, 255, 255, 0.82) !important;
}

.footer .footer-lower {
    border-top-color: rgba(255, 255, 255, 0.12) !important;
}

.footer-subscribe {
    border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

.footer .contact-info {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.footer .contact-info div[style*="linear-gradient"] {
    background: linear-gradient(135deg, var(--ws-green), #449ee1) !important;
}

/* ===== Cookie Banner ===== */
.gcware-cookie-banner,
.websoft-cookie-banner {
    background: linear-gradient(135deg, var(--ws-navy-dark), var(--ws-navy));
    border-color: rgba(255, 255, 255, 0.1);
}

.gcware-cookie-banner__btn,
.websoft-cookie-banner__btn {
    background: var(--ws-green) !important;
    color: #fff !important;
}

/* ===== Auth / Forms ===== */
.sign .box,
.box.bg-color {
    border-radius: 16px !important;
    box-shadow: 0 12px 40px rgba(33, 58, 91, 0.08) !important;
    border: 1px solid rgba(33, 58, 91, 0.06) !important;
}

.form-control:focus {
    border-color: var(--ws-green) !important;
    box-shadow: 0 0 0 0.2rem rgba(30, 130, 76, 0.15) !important;
}

/* ===== Page header ===== */
.page-header,
.breadcrumbs {
    background: #fff;
    border-bottom: 1px solid rgba(33, 58, 91, 0.08);
}

/* ===== Swiper / carousel dots ===== */
.swiper-pagination-bullet-active {
    background: var(--ws-green) !important;
}
