/* ========================================
   ABAYABLE — Posh-Inspired Design
   Font: Arimo | Palette: White, Charcoal, Rust accent
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arimo', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #191919;
    background-color: #F1EFE7;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.25s ease;
}

ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ==========================================
   ANNOUNCEMENT BAR
   ========================================== */
.announcement-bar {
    background-color: #232323;
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    min-height: 38px;
}

/* ==========================================
   HEADER
   ========================================== */
.site-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

.header-container {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.header-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.header-center {
    flex: 0 0 auto;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex: 1;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: #191919;
}

/* Nav */
.main-nav ul {
    display: flex;
    gap: 32px;
}

.main-nav a {
    font-size: 14px;
    font-weight: 400;
    color: #191919;
    transition: color 0.25s ease;
    position: relative;
}

.main-nav a:hover {
    color: #666;
}

.main-nav a.featured {
    color: #df5641;
}

.main-nav a.featured:hover {
    color: #c44535;
}

/* Header Icons */
.header-icon {
    color: #191919;
    position: relative;
    transition: opacity 0.25s ease;
}

.header-icon:hover { opacity: 0.6; }

.cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #191919;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #191919;
    margin-right: 16px;
}

/* Search Overlay */
.search-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px 30px;
    border-bottom: 1px solid #e4e4e4;
    display: none;
}

.search-overlay.active { display: block; }

.search-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-form input {
    flex: 1;
    padding: 12px 0;
    border: none;
    border-bottom: 2px solid #191919;
    font-family: 'Arimo', sans-serif;
    font-size: 16px;
    outline: none;
    background: transparent;
}

.search-form input::placeholder { color: #999; }

.search-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #191919;
    padding: 4px;
}

/* Search Results Dropdown */
.search-results {
    max-width: 600px;
    margin: 0 auto;
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #191919;
    transition: background 0.15s;
}

.search-result-item:hover {
    background: #f9f6f2;
    margin: 0 -10px;
    padding: 12px 10px;
}

.search-result-item img {
    width: 50px;
    height: 65px;
    object-fit: cover;
    border-radius: 4px;
}

.search-result-item div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-result-name {
    font-size: 14px;
    font-weight: 500;
}

.search-result-price {
    font-size: 13px;
    color: #888;
}

.search-no-results {
    padding: 20px 0;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* ==========================================
   MOBILE NAV
   ========================================== */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-panel {
    position: absolute;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100%;
    background: #fff;
    transition: left 0.35s ease;
    overflow-y: auto;
}

.mobile-nav-overlay.active .mobile-nav-panel {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #e4e4e4;
}

.mobile-nav-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #191919;
}

.mobile-nav-list li a {
    display: block;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 400;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.mobile-nav-list li a:hover { background: #f9f9f9; }

.mobile-nav-list li a.featured { color: #df5641; }

.mobile-nav-footer {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-nav-footer a {
    font-size: 13px;
    color: #888;
}

.mobile-nav-footer a:hover { color: #191919; }

/* ==========================================
   HERO
   ========================================== */
.hero {
    position: relative;
    overflow: hidden;
    contain: layout style;
}

.carousel-track {
    display: flex;
    transition: transform 0.7s ease;
}

.hero-slide {
    min-width: 100%;
    position: relative;
}

.hero-image {
    width: 100%;
    height: 85vh;
    max-height: 800px;
    min-height: 500px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0,0,0,0.22);
    color: #fff;
    padding: 40px;
}

.hero-label {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 12px;
    opacity: 0.9;
}

.hero-title {
    font-size: 53px;
    font-weight: 400;
    letter-spacing: 0.04em;
    margin-bottom: 28px;
    line-height: 1.15;
}

.hero-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid #fff;
    background: transparent;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active { background: #fff; }

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-block;
    padding: 14px 40px;
    font-family: 'Arimo', sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1.5px solid #232323;
    background: #232323;
    color: #fff;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #000;
    border-color: #000;
}

.btn-white {
    background: #fff;
    color: #232323;
    border-color: #fff;
}

.btn-white:hover {
    background: #f0f0f0;
    border-color: #f0f0f0;
}

.btn-outline {
    background: transparent;
    color: #232323;
    border-color: #232323;
}

.btn-outline:hover {
    background: #232323;
    color: #fff;
}

/* ==========================================
   COLLECTION BANNERS (2 cols)
   ========================================== */
.collection-banners {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}

.collection-banner {
    position: relative;
    overflow: hidden;
    display: block;
}

.banner-image {
    height: 550px;
    overflow: hidden;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.collection-banner:hover .banner-image img {
    transform: scale(1.04);
}

.banner-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 36px 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.45));
    color: #fff;
}

.banner-text h3 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.banner-link {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.04em;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.collection-banner:hover .banner-link { opacity: 1; }


/* ==========================================
   SECTIONS
   ========================================== */
.section {
    padding: 70px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
}

.section-title {
    font-size: 30px;
    font-weight: 400;
    color: #191919;
    letter-spacing: 0.02em;
}

.section-link {
    font-size: 14px;
    color: #666;
    letter-spacing: 0.02em;
    transition: color 0.25s ease;
}

.section-link:hover { color: #191919; }

/* ==========================================
   PRODUCT GRID
   ========================================== */
.product-grid {
    display: grid;
    gap: 20px;
}

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

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

.product-card {
    position: relative;
    contain: layout style;
}

.product-image-link {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #f7f7f8;
}

.product-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.product-hover-img {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.product-image-link:hover .product-hover-img {
    opacity: 1;
}

.product-image-link:hover > img:first-of-type {
    opacity: 0;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #df5641;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 2px;
    text-transform: uppercase;
    z-index: 2;
}

.product-info {
    padding: 14px 0 0;
}

.product-info h3 {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 4px;
}

.product-info h3 a {
    color: #191919;
}

.product-info h3 a:hover {
    color: #666;
}

.product-price {
    font-size: 14px;
    font-weight: 400;
    color: #666;
}

/* ==========================================
   FULL-WIDTH BANNER
   ========================================== */
.full-banner {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.full-banner-image {
    width: 100%;
    height: 100%;
}

.full-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.full-banner-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0,0,0,0.3);
    color: #fff;
    padding: 40px;
}

.full-banner-content h2 {
    font-size: 42px;
    font-weight: 400;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.full-banner-content p {
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 28px;
    opacity: 0.9;
}

/* ==========================================
   TRIPLE BANNERS (3 cols)
   ========================================== */
.triple-banners {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.triple-banner {
    position: relative;
    display: block;
    overflow: hidden;
}

.triple-banner-image {
    height: 420px;
    overflow: hidden;
}

.triple-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.triple-banner:hover .triple-banner-image img {
    transform: scale(1.04);
}

.triple-banner-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.4));
    color: #fff;
}

.triple-banner-text h3 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.triple-banner-text span {
    font-size: 13px;
    opacity: 0.85;
}

/* ==========================================
   NEWSLETTER
   ========================================== */
.newsletter {
    background: #f7f7f8;
    padding: 70px 0;
    text-align: center;
}

.newsletter h2 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 10px;
    color: #191919;
}

.newsletter p {
    font-size: 15px;
    color: #666;
    margin-bottom: 28px;
}

.newsletter-form {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
    gap: 0;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 3px 0 0 3px;
    font-family: 'Arimo', sans-serif;
    font-size: 14px;
    outline: none;
    background: #fff;
    transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
    border-color: #191919;
}

.newsletter-form input::placeholder { color: #aaa; }

.newsletter-form .btn {
    border-radius: 0 3px 3px 0;
    white-space: nowrap;
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    background: #f7f7f8;
    border-top: 1px solid #e4e4e4;
    padding: 60px 0 30px;
    color: #676869;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #191919;
    margin-bottom: 18px;
}

.footer-about {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #888;
}

.social-links {
    display: flex;
    gap: 14px;
}

.social-links a {
    color: #888;
    transition: color 0.25s ease;
}

.social-links a:hover { color: #191919; }

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a,
.footer-col ul li {
    font-size: 14px;
    color: #888;
    transition: color 0.25s ease;
}

.footer-col ul li a:hover { color: #191919; }

.footer-bottom {
    border-top: 1px solid #e4e4e4;
    padding-top: 24px;
    text-align: center;
}

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


/* ==========================================
   RESPONSIVE — TABLET
   ========================================== */
@media (max-width: 1024px) {
    .container { padding: 0 20px; }
    .header-container { padding: 0 20px; }

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

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

    .hero-title { font-size: 40px; }
    .banner-image { height: 420px; }
    .triple-banner-image { height: 340px; }

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

/* ==========================================
   RESPONSIVE — MOBILE
   ========================================== */
@media (max-width: 767px) {
    .announcement-bar {
        font-size: 10px;
        padding: 8px 12px;
        letter-spacing: 0.05em;
    }

    .header-container { height: 60px; }

    .mobile-menu-toggle { display: block; }

    .main-nav { display: none; }

    .logo {
        font-size: 20px;
        letter-spacing: 0.08em;
    }


    .header-right { gap: 14px; }

    .header-icon svg {
        width: 20px;
        height: 20px;
    }

    /* Hero */
    .hero-image {
        height: 65vh;
        min-height: 400px;
    }

    .hero-title { font-size: 32px; }
    .hero-label { font-size: 11px; }

    /* Banners */
    .collection-banners {
        grid-template-columns: 1fr;
    }

    .banner-image { height: 380px; }

    .triple-banners {
        grid-template-columns: 1fr;
    }

    .triple-banner-image { height: 320px; }

    /* Sections */
    .section { padding: 45px 0; }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 24px;
    }

    .section-title { font-size: 24px; }

    /* Products */
    .product-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-grid.cols-5 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-info h3 { font-size: 13px; }
    .product-price { font-size: 13px; }
    .product-hover-img { display: none; }

    /* Full Banner */
    .full-banner { height: 380px; }
    .full-banner-content h2 { font-size: 28px; }
    .full-banner-content p { font-size: 14px; }

    /* Newsletter */
    .newsletter { padding: 45px 0; }
    .newsletter h2 { font-size: 22px; }

    .newsletter-form {
        flex-direction: column;
        gap: 10px;
        padding: 0 10px;
    }

    .newsletter-form input {
        border-right: 1px solid #ddd;
        border-radius: 3px;
        font-size: 16px;
    }

    .newsletter-form .btn {
        border-radius: 3px;
        width: 100%;
        text-align: center;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

}

@media (max-width: 374px) {
    .logo { font-size: 17px; }
.header-right { gap: 10px; }
}
