
/* ==================== RESET & THEME ==================== */
:root {
    --ivory: #fbf7f1;
    --cream: #f3e9dc;
    --sand: #e6d7c4;
    --olive: #4b5234;
    --olive-dark: #353d25;
    --brown: #49382d;
    --muted: #837568;
    --white: #fffdf9;
    --border: #e6dbce;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 25px;
}
body {
    font-family: "DM Sans", sans-serif;
    color: var(--brown);
    background: var(--ivory);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a {
    color: inherit;
    text-decoration: none;
}
button, input {
    font: inherit;
}
img {
    display: block;
    width: 100%;
}
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* ==================== HEADER ==================== */
.site-header {
    min-height: 76px;
    padding: 0 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    background: var(--ivory);
    border-bottom: 1px solid var(--border);
}
.logo {
    flex-shrink: 0;
    font-family: "Playfair Display", serif;
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -1.5px;
}
.logo span {
    color: var(--olive);
}
.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 2.5vw, 35px);
    margin: 0 auto;
}
.main-nav a {
    position: relative;
    padding: 8px 0;
    font-size: 11px;
    transition: color 0.2s ease;
}
.main-nav a::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--olive);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}
.main-nav a:hover {
    color: var(--olive);
}
.main-nav a:hover::after {
    transform: scaleX(1);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 19px;
}
.header-icon {
    position: relative;
    display: inline-flex;
    width: 23px;
    height: 30px;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}
.header-icon:hover {
    color: var(--olive);
}
.header-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.cart-count {
    position: absolute;
    top: 0;
    right: -7px;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--olive);
    color: var(--white);
    font-size: 8px;
}
.logout-btn {
    border: 1px solid #4c5632;
    background: #4c5632;
    color: white;
    padding: 9px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #2a3316;
    color: #fff;
}

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
}

.profile-toggle {
    border: none;
    background: transparent;
    color: var(--brown);
    cursor: pointer;
}

.profile-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    z-index: 1000;
    width: 220px;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: 0 8px 25px rgba(73, 56, 45, 0.12);
    display: none;
}

.profile-menu.active {
    display: block;
}

.profile-menu-header {
    padding: 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.profile-menu-header p {
    color: var(--brown);
    font-size: 14px;
    font-weight: 600;
}

.profile-menu-header span {
    color: var(--muted);
    font-size: 11px;
}

.profile-menu a,
.profile-menu button {
    display: block;
    width: 100%;
    padding: 10px;
    border: none;
    background: transparent;
    color: var(--brown);
    text-align: left;
    font-size: 12px;
    cursor: pointer;
}

.profile-menu a:hover,
.profile-menu button:hover {
    background: var(--cream);
    color: var(--olive);
}

.profile-menu button {
    border-top: 1px solid var(--border);
    margin-top: 5px;
}

/* ==================== SEARCH ==================== */
.search-section {
    padding: 20px 6% 0;
}
.search-bar {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    max-width: 620px;
    min-height: 48px;
    margin: 0 auto;
    padding: 6px 7px 6px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    transition: border-color 0.2s ease;
}
.search-bar:focus-within {
    border-color: var(--olive);
}
.search-bar svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--muted);
    stroke-width: 1.5;
    stroke-linecap: round;
}
.search-bar input {
    width: 100%;
    min-width: 0;
    padding: 8px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--brown);
    font-size: 12px;
}
.search-bar input::placeholder {
    color: #a0978c;
}
.search-bar button {
    flex-shrink: 0;
    padding: 10px 18px;
    border: 0;
    background: var(--olive);
    color: var(--white);
    font-size: 11px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.search-bar button:hover {
    background: var(--olive-dark);
}

/* ==================== HERO ==================== */
.hero-section {
    display: grid;
    grid-template-columns: 0.84fr 1.16fr;
    min-height: 470px;
    margin: 25px 6% 0;
    overflow: hidden;
    background: var(--sand);
}
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 48px clamp(25px, 4vw, 60px);
}
.eyebrow {
    color: var(--olive);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.5px;
    line-height: 1.9;
}
.hero-content h1 {
    margin: 14px 0 18px;
    font-family: "Playfair Display", serif;
    font-size: clamp(38px, 4vw, 58px);
    font-weight: 400;
    letter-spacing: -1.7px;
    line-height: 1.12;
}
.hero-content h1 em,
.about-content h2 em {
    color: var(--olive);
    font-weight: 400;
}
.hero-description {
    max-width: 340px;
    color: #6e5d4f;
    font-size: 12px;
    line-height: 2;
}
.primary-button {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    margin-top: 25px;
    padding: 13px 17px;
    border: 1px solid var(--olive);
    background: var(--olive);
    color: var(--white);
    font-size: 11px;
    transition: background 0.2s ease, transform 0.2s ease;
}
.primary-button:hover {
    transform: translateY(-2px);
    background: var(--olive-dark);
}
.hero-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
    color: var(--muted);
    font-size: 9px;
}
.hero-note span {
    width: 23px;
    height: 1px;
    background: var(--olive);
}
.hero-image {
    position: relative;
    min-width: 0;
    min-height: 470px;
    overflow: hidden;
    background: var(--cream);
}
.hero-image img {
    width: 100%;
    height: 100%;
    min-height: 470px;
    object-fit: cover;
    object-position: center;
}
.image-caption {
    position: absolute;
    right: 20px;
    bottom: 18px;
    color: white;
    font-size: 8px;
    letter-spacing: 1.2px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
}

/* ==================== BRAND PROMISE ==================== */
.promise-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 25px 8%;
    border-bottom: 1px solid var(--border);
}
.promise-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.promise-symbol {
    color: var(--olive);
    font-size: 23px;
}
.promise-item h3 {
    font-size: 11px;
    font-weight: 600;
}
.promise-item p {
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px;
}

/* ==================== SECTION HEADINGS ==================== */
.categories-section {
    padding: 70px 6% 76px;
}
.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}
.section-heading h2 {
    margin-top: 7px;
    font-family: "Playfair Display", serif;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 400;
    letter-spacing: -0.7px;
    line-height: 1.3;
}
.section-description {
    margin-top: 8px;
    color: var(--muted);
    font-size: 11px;
}
.text-link {
    flex-shrink: 0;
    padding-bottom: 5px;
    color: var(--olive);
    font-size: 11px;
}
.text-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ==================== CATEGORIES ==================== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 17px;
}
.category-card {
    min-width: 0;
}
.category-image {
    position: relative;
    overflow: hidden;
    background: var(--cream);
}
.category-image img {
    width: 100%;
    aspect-ratio: 0.82;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.category-card:hover .category-image img {
    transform: scale(1.045);
}
.category-arrow {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: flex;
    width: 29px;
    height: 29px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ivory);
    color: var(--olive);
    font-size: 13px;
}
.category-card h3 {
    margin-top: 12px;
    font-family: "Playfair Display", serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}
.category-card p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.7;
}

/* ==================== FEATURED PRODUCTS ==================== */
.featured-section {
    padding: 70px 6% 78px;
    background: #f3ece3;
}
.featured-section .section-heading {
    margin-bottom: 29px;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.product-card {
    min-width: 0;
}
.product-image {
    position: relative;
    display: block;
    overflow: hidden;
    background: #e9dfd3;
}
.product-image img {
    width: 100%;
    aspect-ratio: 0.87;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .product-image img {
    transform: scale(1.04);
}
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 8px;
    background: var(--ivory);
    color: var(--olive);
    font-size: 8px;
    letter-spacing: 0.7px;
}
.product-info {
    padding-top: 13px;
}
.product-category {
    color: var(--muted);
    font-size: 8px;
    letter-spacing: 1px;
}
.product-info h3 {
    margin-top: 5px;
    font-family: "Playfair Display", serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}
.product-price {
    margin-top: 7px;
    font-size: 12px;
    font-weight: 600;
}

/* ==================== ABOUT HOMIVA ==================== */
.about-section {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    align-items: center;
    gap: 8%;
    padding: 82px 10%;
}
.about-image {
    overflow: hidden;
    background: var(--cream);
}
.about-image img {
    width: 100%;
    aspect-ratio: 1.12;
    object-fit: cover;
}
.about-content h2 {
    max-width: 440px;
    margin-top: 12px;
    font-family: "Playfair Display", serif;
    font-size: clamp(31px, 3.3vw, 44px);
    font-weight: 400;
    letter-spacing: -0.8px;
    line-height: 1.25;
}
.about-content > p:not(.eyebrow) {
    max-width: 420px;
    margin-top: 17px;
    color: var(--muted);
    font-size: 12px;
    line-height: 2;
}
.about-content .text-link {
    display: inline-block;
    margin-top: 22px;
    border-bottom: 1px solid var(--olive);
}

/* ====================  FOOTER ==================== */
.site-footer {
  width: 100%;
  min-height: 57px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 4%;
  border-top: 1px solid var(--border);
  background: #f9f0eb;
  color: #6f695f;
  font-size: 8px;
  letter-spacing: 0.2px;
}

.site-footer p {
  line-height: 1.7;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--olive);
}

/* TABLET */

@media (max-width: 850px) {
  .login-layout {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    padding: 28px 3%;
  }

  .login-visual {
    min-height: 420px;
    padding: 17px;
  }

  .login-form-side {
    padding: 25px 5%;
  }

  .site-footer {
    flex-wrap: wrap;
  }
}

/* ==================== TABLET ==================== */
@media (max-width: 1000px) {
    .site-header {
        padding-right: 4%;
        padding-left: 4%;
        gap: 18px;
    }
    .main-nav {
        gap: 15px;
    }
    .header-actions {
        gap: 13px;
    }
    .hero-section {
        grid-template-columns: 0.9fr 1.1fr;
        margin-right: 4%;
        margin-left: 4%;
    }
    .hero-content {
        padding: 35px 25px;
    }
    .hero-content h1 {
        font-size: clamp(34px, 4.4vw, 48px);
    }
    .categories-section,
    .featured-section {
        padding-right: 4%;
        padding-left: 4%;
    }
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 27px;
    }
    .category-image img {
        aspect-ratio: 1;
    }
    .promise-strip {
        padding-right: 4%;
        padding-left: 4%;
    }
    .about-section {
        padding-right: 6%;
        padding-left: 6%;
    }
}

/* ==================== MOBILE ==================== */
@media (max-width: 650px) {
    .site-header {
        min-height: 66px;
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 4%;
    }
    .logo {
        font-size: 26px;
    }
    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 20px;
        margin: 0;
        padding-top: 9px;
        border-top: 1px solid var(--border);
    }
    .main-nav a {
        font-size: 10px;
    }
    .header-actions {
        gap: 15px;
    }
    .search-section {
        padding: 17px 4% 0;
    }
    .search-bar {
        min-height: 45px;
        gap: 8px;
        padding-left: 11px;
    }
    .search-bar input {
        font-size: 10px;
    }
    .search-bar button {
        padding: 9px 11px;
        font-size: 10px;
    }
    .hero-section {
        grid-template-columns: 1fr;
        margin: 18px 4% 0;
    }
    .hero-content {
        padding: 38px 25px;
    }
    .hero-content h1 {
        font-size: clamp(39px, 10vw, 50px);
    }
    .hero-description {
        max-width: 320px;
    }
    .hero-image,
    .hero-image img {
        min-height: 280px;
        height: 280px;
    }
    .image-caption {
        right: 13px;
        bottom: 13px;
        font-size: 7px;
    }
    .promise-strip {
        grid-template-columns: 1fr;
        gap: 19px;
        padding: 25px 8%;
    }
    .promise-item {
        justify-content: flex-start;
    }
    .categories-section,
    .featured-section {
        padding: 48px 4%;
    }
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
    .section-heading h2 {
        font-size: 30px;
    }
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px 13px;
    }
    .category-card h3 {
        font-size: 13px;
    }
    .category-card p {
        font-size: 9px;
    }
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 12px;
    }
    .product-info h3 {
        font-size: 13px;
    }
    .product-category {
        font-size: 7px;
    }
    .product-badge {
        top: 8px;
        left: 8px;
        font-size: 7px;
    }
    .about-section {
        grid-template-columns: 1fr;
        gap: 27px;
        padding: 48px 6%;
    }
    .about-image img {
        aspect-ratio: 1.2;
    }
    .about-content h2 {
        font-size: 34px;
    }
    .site-footer {
        gap: 15px;
        padding: 25px 5%;
    }
    .footer-tagline {
        max-width: 330px;
        font-size: 9px;
        line-height: 1.9;
    }
    .footer-links {
        gap: 21px;
    }
}

/* ==================== SMALL MOBILE ==================== */
@media (max-width: 360px) {
    .main-nav {
        gap: 13px;
    }
    .main-nav a {
        font-size: 9px;
    }
    .header-actions {
        gap: 10px;
    }
    .hero-content h1 {
        font-size: 37px;
    }
    .search-bar button {
        padding-right: 8px;
        padding-left: 8px;
    }
}

/* ==================== TEXT SIZE IMPROVEMENTS ==================== */
.logo {
    font-size: 32px;
}
.main-nav a {
    font-size: 13px;
}
.header-icon svg {
    width: 20px;
    height: 20px;
}
.search-bar input {
    font-size: 14px;
}
.search-bar button {
    font-size: 13px;
}
.hero-content h1 {
    font-size: clamp(42px, 4.2vw, 64px);
}
.eyebrow {
    font-size: 11px;
    letter-spacing: 1.4px;
}
.hero-description {
    font-size: 15px;
    line-height: 1.9;
}
.primary-button {
    font-size: 13px;
}
.hero-note {
    font-size: 11px;
}
.promise-item h3 {
    font-size: 13px;
}
.promise-item p {
    font-size: 11px;
}
.section-heading h2 {
    font-size: clamp(30px, 3vw, 42px);
}
.section-description {
    font-size: 14px;
}
.text-link {
    font-size: 13px;
}
.category-card h3 {
    font-size: 17px;
}
.category-card p {
    font-size: 12px;
}
.product-category {
    font-size: 10px;
}
.product-info h3 {
    font-size: 17px;
}
.product-price {
    font-size: 14px;
}
.product-badge {
    font-size: 10px;
}
.about-content h2 {
    font-size: clamp(34px, 3.3vw, 48px);
}
.about-content > p:not(.eyebrow) {
    font-size: 15px;
    line-height: 1.9;
}
.footer-tagline {
    font-size: 12px;
}
.footer-links a {
    font-size: 11px;
}
.copyright {
    font-size: 10px;
}

/* ==================== MOBILE TEXT SIZES ==================== */
@media (max-width: 650px) {
    .main-nav a {
        font-size: 11px;
    }
    .hero-content h1 {
        font-size: clamp(40px, 10vw, 52px);
    }
    .hero-description {
        font-size: 14px;
    }
    .section-heading h2 {
        font-size: 30px;
    }
    .section-description {
        font-size: 13px;
    }
    .category-card h3 {
        font-size: 15px;
    }
    .category-card p {
        font-size: 11px;
    }
    .product-info h3 {
        font-size: 15px;
    }
    .product-category {
        font-size: 9px;
    }
    .product-price {
        font-size: 13px;
    }
    .about-content h2 {
        font-size: 35px;
    }
    .about-content > p:not(.eyebrow) {
        font-size: 14px;
    }
    .footer-tagline {
        font-size: 10px;
    }
}

