/* ============================================================
   Global Variables and Base Styles
============================================================ */
:root {
    --font-primary: 'Oxygen', sans-serif;
    --font-secondary: 'Bell MT', serif;

    /* Colors */
    --color-dark: #222;
    --color-medium: #555;
    --color-light: #f9f9f9;
    --color-white: #fff;
    --color-bg: #F0EAE2;
    --color-card-bg: #B5986D;
    --color-black: #000;
    --color-accent: #575046;
    --color-light-bg: #f0eae2;
    --color-accent-red: #ff0000;

    /* Layout */
    --section-padding: 0px;
    --grid-gap: 20px;
    --content-padding: 0 17px;
    --border-radius: 20px;

    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ============================================================
   Hero Section
============================================================ */
.hero-section {
    background: url('img/hero_bg.png') no-repeat center center/cover;
    background-attachment: fixed;
    height: 100vh;
    color: var(--color-white);
    position: relative;
}

.hero-content {
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.hero-title {
    font-family: var(--font-secondary);
    font-size: 64px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-subtitle {
    font-family: var(--font-secondary);
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn {
    display: inline-block;
    background-color: var(--color-white);
    color: var(--color-dark);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.btn:hover {
    background-color: #f1f1f1;
    transform: translateY(-2px);
}

/* Space after hero */
.after-hero-space {
    height: 40px;
}

/* ============================================================
   Section Titles
============================================================ */
.section-title {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin: 60px 0 40px;
    position: relative;
    color: var(--color-dark);
}

.section-title:after {
    content: '';
    position: absolute;
    width: 100px;
    height: 3px;
    background-color: var(--color-black);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

/* ============================================================
   Categories Section
============================================================ */
.categories-section {
    padding: var(--section-padding) 0;
}

.categories-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.category-card-alt {
    position: relative;
    width: 100%;
    max-width: 350px;
    aspect-ratio: 7 / 10; /* Replaces fixed height */
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card-alt:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.category-bg {
    position: absolute;
    width: 100%;
    height: 70%;           /* default for desktop */
    top: 56px;
    left: 0;
    background-color: var(--color-card-bg);
    opacity: 0.2;
    border-radius: 20px;
}

.category-image {
    position: absolute;
    width: auto;
    height: auto;
    max-width: 400px;
    max-height: 400px;
    top: 56px;
    left: 50%;
    transform: translateX(-50%);
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Tablet */
@media (max-width: 992px) {
    .category-bg {
        height: 65%;
        top: 45px;
    }
    .category-image {
        max-width: 320px;
        max-height: 320px;
        top: 45px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .category-bg {
        height: 60%;
        top: 35px;
    }
    .category-image {
        max-width: 260px;
        max-height: 260px;
        top: 35px;
    }
}

/* Very Small Devices */
@media (max-width: 480px) {
    .category-bg {
        height: 55%;
        top: 25px;
    }
    .category-image {
        max-width: 200px;
        max-height: 200px;
        top: 25px;
    }
}


.category-card-alt:hover .category-image {
    transform: translateX(-50%) scale(1.05);
}

.category-title-alt {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 22px;
    text-align: center;
    color: var(--color-black);
}

.category-title-alt a {
  color: var(--color-black) !important;
  text-decoration: none !important;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: inherit; /* same as parent */
  display: inline-block;
  width: 100%;
  text-align: center;
}

.category-title-alt a:hover {
  color: var(--color-accent); /* optional hover effect */
}

/* ============================================================
   Collections Section
============================================================ */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--grid-gap);
    margin-bottom: 50px;
}

.collection-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.collection-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.collection-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 65%;
    background-color: var(--color-white);
    border-radius: 0 var(--border-radius) 0 var(--border-radius);
    padding: var(--content-padding);
    transition: all 0.3s ease;
    text-align: center; /* ✅ fix alignment */
}

.collection-title {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-black);
    font-size: clamp(1.125rem, 2vw, 1.5625rem);
    margin-bottom: 15px;
}

.collection-link {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-black);
    font-size: clamp(0.875rem, 1.5vw, 0.9375rem);
    text-decoration: underline;
}

.collection-arrow {
    position: absolute;
    bottom: 31px;
    right: 17px;
    width: 24px;
    height: 24px;
}

/* Mobile Filter */
.mobile-filter-toggle {
    display: none;
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    padding: 15px;
    margin: 0 auto 30px;
    border-radius: calc(var(--border-radius) / 2);
    font-family: var(--font-primary);
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.collection-filters {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
    background: var(--color-light-bg);
    padding: 20px;
    border-radius: calc(var(--border-radius) / 2);
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.collection-filters.active {
    display: flex;
}

.filter-btn {
    background: transparent;
    border: none;
    padding: 12px 15px;
    text-align: left;
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-black);
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: var(--color-accent);
    color: var(--color-white);
}

/* ✅ Mobile Fix */
@media (max-width: 480px) {
    .collection-grid {
        grid-template-columns: 1fr; /* only stack on very small screens */
    }
}
@media (max-width: 768px) {
    .collection-grid {
        grid-template-columns: 1fr; /* one card per row */
        gap: 25px;
    }

    .collection-card {
        aspect-ratio: auto; /* prevent tall empty box */
        height: auto;
    }

    .collection-image {
        height: auto;
        max-height: 250px; /* keeps images neat */
    }

    .collection-content {
        width: 100%; /* make content span full width */
        border-radius: 0 0 var(--border-radius) var(--border-radius);
    }
}



/* ============================================================
   About Section
============================================================ */
.about-section-custom {
    padding: var(--content-padding);
    background-color: var(--color-white);
}

.about-content-custom {
    display: flex;
    gap: 56px;
    align-items: flex-start;
}

.about-image-custom {
    width: 619px;
    height: 425px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.about-text-custom {
    flex: 1;
    padding-top: 17px;
}

.about-paragraph-custom {
    font-family: var(--font-primary);
    font-weight: 300;
    font-size: clamp(1rem, 1.5vw, 1.5625rem);
    line-height: 1.8;
    margin-bottom: 37px;
}

.about-link-custom {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-black);
    font-size: clamp(1rem, 1.5vw, 1.5625rem);
    text-decoration: none;
    transition: color 0.3s ease;
}

.about-link-custom:hover {
    color: var(--color-accent); /* fixed typo */
}

.about-arrow-custom {
    width: 35px;
    height: 35px;
    transition: transform 0.3s ease;
}

.about-cta-custom:hover .about-arrow-custom {
    transform: translateX(5px);
}

/* ============================================================
   Bestsellers Section
============================================================ */
.bestsellers-section-custom {
    padding: var(--content-padding);
    position: relative;
    background-color: var(--color-white);
}

.bestseller-slider-custom {
    position: relative;
    overflow: hidden;
}

.bestseller-track-custom {
    display: flex;
    transition: transform 0.5s ease;
}

.bestseller-slide-custom {
    min-width: 100%;
    background-color: var(--color-light-bg);
    border-radius: var(--border-radius);
    padding: 31px 35px;
    display: flex;
    gap: 68px;
    align-items: flex-start;
}

.bestseller-image-custom {
    width: 444px;
    height: 520px;
    object-fit: cover;
    border-radius: calc(var(--border-radius) / 2);
}

.bestseller-content-custom {
    flex: 1;
    padding-top: 86px;
}

.bestseller-title-custom {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    margin-bottom: 34px;
}

.bestseller-description-custom {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: clamp(0.875rem, 1.25vw, 1.25rem);
    line-height: 1.6;
    margin-bottom: 35px;
}

.price-container-custom {
    background-color: var(--color-white);
    border-radius: 16px;
    padding: 12px 22px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}

.original-price-custom {
    font-family: var(--font-primary);
    font-weight: 400;
    text-decoration: line-through;
    font-size: clamp(0.875rem, 1.25vw, 1.5625rem);
}

.sale-price-custom {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-accent-red);
    font-size: clamp(0.875rem, 1.25vw, 1.5625rem);
}

/* ============================================================
   Contact Section
============================================================ */
.contact-section-custom {
    padding: var(--content-padding);
    background-color: var(--color-white);
}

.contact-content-custom {
    display: flex;
    gap: 0;
}

.contact-map-custom {
    width: 610px;
    height: 502px;
    object-fit: cover;
}

.contact-info-custom {
    width: 633px;
    height: 502px;
    background-color: var(--color-light-bg);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 105px 78px;
}

.contact-description-custom {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: clamp(0.875rem, 1.25vw, 1.25rem);
    line-height: 1.6;
    margin-bottom: 30px;
}

.contact-title-custom {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: clamp(1.25rem, 2vw, 2.1875rem);
    margin-bottom: 30px;
}

.timings-custom {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: clamp(0.875rem, 1.25vw, 1.25rem);
    line-height: 1.6;
    margin-bottom: 50px;
}

.timings-custom strong {
    font-weight: 700;
}

/* ============================================================
   Responsive Adjustments
============================================================ */
@media (max-width: 1200px) {
    .about-content-custom,
    .contact-content-custom {
        gap: 40px;
    }

    .about-image-custom {
        width: 500px;
        height: 500px;
    }

    .contact-map-custom,
    .contact-info-custom {
        width: 50%;
        height: auto;
    }
}

@media (max-width: 992px) {
    .categories-row {
        gap: 20px;
    }

    .about-section-custom,
    .bestsellers-section-custom,
    .contact-section-custom {
        padding: 40px;
    }

    .about-content-custom {
        flex-direction: column;
    }

    .about-image-custom {
        width: 100%;
        height: auto;
    }

    .bestseller-slide-custom {
        flex-direction: column;
        gap: 30px;
    }

    .bestseller-image-custom {
        width: 100%;
        height: auto;
        max-height: 500px;
    }

    .bestseller-content-custom {
        padding-top: 0;
    }

    .contact-content-custom {
        flex-direction: column;
    }

    .contact-map-custom,
    .contact-info-custom {
        width: 100%;
    }

    .contact-info-custom {
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        padding: 50px 40px;
    }
}

/* Tablet and smaller - 2 cards per row */
@media (max-width: 768px) {
  .categories-row {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px; /* tighter spacing */
  }

  .category-card-alt {
    flex: 0 0 calc(50% - 15px); /* two cards per row */
    max-width: calc(50% - 15px);
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .category-image {
    max-height: 180px;
    top: 30px;
  }

  .category-title-alt {
    font-size: 16px;
    bottom: 10px;
  }
}

/* Small phones - still 2 per row but even tighter */
@media (max-width: 480px) {
  .category-card-alt {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
    aspect-ratio: 3 / 4;
  }

  .category-image {
    max-height: 150px;
  }

  .category-title-alt {
    font-size: 14px;
  }
}


@media (max-width: 576px) {
    .section-title {
        margin-bottom: 30px;
        font-size: 28px;
    }

    .category-card-alt {
        height: auto; /* rely on aspect ratio */
    }

    .about-section-custom,
    .bestsellers-section-custom,
    .contact-section-custom {
        padding: 25px 15px;
    }

    .about-cta-custom {
        margin-top: 25px;
    }

    .bestseller-slide-custom {
        padding: 20px;
        gap: 20px;
    }

    .price-container-custom {
        padding: 10px 15px;
    }

    .contact-info-custom {
        padding: 30px 20px;
    }

    .collection-content {
        width: 100%;
        border-radius: 0;
    }
}

.bestseller-slider-custom {
  position: relative; /* ensure arrows are positioned relative to slider */
}

.bestseller-nav-custom {
  position: absolute;
  top: 50%; /* center vertically */
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(-50%); /* align perfectly centered */
  padding: 0 20px; /* spacing inside edges */
  pointer-events: none; /* allow clicks only on arrows */
}

.bestseller-nav-custom .nav-arrow-custom {
  pointer-events: auto; /* re-enable clicks for arrows */
  background: rgba(255,255,255,0.7);
  border-radius: 50%;
  padding: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.bestseller-nav-custom .nav-arrow-custom:hover {
  background: rgba(255,255,255,0.9);
}
