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

:root {
    --primary-color: #2C1810;
    --secondary-color: #8B2635;
    --accent-color: #D4AF37;
    --bg-color: #FAF9F6;
    --bg-warm: #F5F3F0;
    --text-light: #5C4A3F;
    --white: #FFFFFF;
    --border-color: #E8E4DE;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--primary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(250, 249, 246, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    height: 56px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-icon {
    font-size: 1.3rem;
    color: var(--secondary-color);
}

.logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-icons {
    display: flex;
    gap: 1.4rem;
    align-items: center;
}

.nav-icons i {
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
}

.nav-icons i:hover {
    color: var(--secondary-color);
}

.cart-count {
    position: absolute;
    top: -7px;
    right: -7px;
    background: var(--secondary-color);
    color: white;
    font-size: 0.6rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.mobile-menu {
    display: none;
    font-size: 1.2rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    margin-top: 56px;
}

.hero-fullscreen {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: hidden;
}

.hero-fullscreen img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 3rem;
    background: rgba(250,249,246,0.95);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--border-color);
}

/* Keep btn styles for other sections */
.btn-group {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* --- Categories --- */
.categories {
    padding: 3rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-tag {
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.category-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3/4;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(44, 24, 16, 0.9), transparent);
    padding: 3rem 2rem 2rem;
    color: var(--white);
}

.category-name {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.category-count {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* --- Products --- */
.products {
    padding: 0rem 3rem;
    background: var(--bg-color);
}

.products-container {
    max-width: 1400px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-top: 0;
}

.product-card {
    background: var(--white);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.product-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--bg-warm);
}

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

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--secondary-color);
    color: white;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

.product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.95);
    transition: bottom 0.3s ease;
}

.product-card:hover .product-actions {
    bottom: 0;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.product-price {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.current-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.original-price {
    font-size: 0.95rem;
    color: var(--text-light);
    text-decoration: line-through;
}

/* --- Custom Section --- */
.custom-section {
    padding: 8rem 3rem;
    background: var(--primary-color);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.custom-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.custom-content .section-tag {
    color: var(--accent-color);
}

.custom-content .section-title {
    color: var(--white);
    font-size: 3.5rem;
}

.custom-content .section-subtitle {
    color: rgba(255,255,255,0.8);
    margin-bottom: 2.5rem;
}

.custom-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.feature-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.feature-text p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

.custom-image {
    position: relative;
}

.custom-image img {
    width: 100%;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

/* --- About --- */
.about {
    padding: 8rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.about-img {
    overflow: hidden;
}

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

.about-img:first-child {
    margin-top: 3rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    letter-spacing: 1px;
}

/* --- Newsletter --- */
.newsletter {
    padding: 6rem 3rem;
    background: var(--bg-warm);
    text-align: center;
}

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

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1.2rem 2rem;
    border: 1px solid var(--border-color);
    background: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
    border-color: var(--secondary-color);
}

/* --- Footer --- */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 6rem 3rem 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-brand .logo {
    margin-bottom: 2rem;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 1rem;
}

.footer-column ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-column ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.payment-methods {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}

/* --- Cart Sidebar --- */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: var(--white);
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 1.5rem;
}

.close-cart {
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--primary-color);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.cart-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-image {
    width: 100px;
    height: 130px;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border-color);
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-item {
    color: var(--secondary-color);
    cursor: pointer;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: inline-block;
}

.cart-footer {
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-warm);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.checkout-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease;
}

.checkout-btn:hover {
    background: var(--secondary-color);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- Responsive --- */

/* ══════════════════════════════════════
   RESPONSIVE — MOBILE FIRST
══════════════════════════════════════ */

/* ── Tablet (max 1200px) ── */
@media (max-width: 1200px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .nav-container { padding: 1.2rem 2rem; }
}

/* ── Small Tablet (max 992px) ── */
@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }
  .hero-content {
    padding: 6rem 2.5rem 3rem;
    text-align: center;
    align-items: center;
  }
  .hero-title { font-size: 3.8rem; }
  .hero-description { margin: 0 auto 2.5rem; }
  .btn-group { justify-content: center; }
  .hero-image { height: 55vw; min-height: 350px; max-height: 550px; }

  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

  .custom-container { grid-template-columns: 1fr; gap: 3rem; }
  .custom-image { order: -1; max-height: 400px; overflow: hidden; }
  .custom-image img { width: 100%; height: 100%; object-fit: cover; }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-images { grid-template-columns: 1fr 1fr; }

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

  .cart-sidebar { width: 100%; right: -100%; }
}

/* ── Mobile (max 768px) ── */
@media (max-width: 768px) {
  /* Nav */
  .nav-container { padding: 1rem 1.2rem; }
  .nav-links { display: none; }
  .mobile-menu { display: block; }
  .nav-links.active {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--bg-color);
    padding: 1.5rem 1.5rem 2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-top: 1px solid var(--border-color);
    gap: 0;
    z-index: 999;
  }
  .nav-links.active li a {
    display: block;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
  }
  .nav-icons { gap: 1.2rem; }
  .nav-icons i { font-size: 1.1rem; }

  /* Hero */
  .hero { margin-top: 56px; height: auto; min-height: 0; }
  .hero-fullscreen { height: auto; min-height: 0; }
  .hero-content { padding: 3rem 1.5rem 2.5rem; }
  .hero-title { font-size: 2.6rem; line-height: 1.15; }
  .hero-est { font-size: 0.75rem; margin-bottom: 1.2rem; }
  .hero-description { font-size: 0.95rem; margin-bottom: 2rem; }
  .btn-group { flex-direction: column; align-items: center; gap: 1rem; }
  .btn { width: 100%; max-width: 280px; text-align: center; }
  .hero-image { height: 70vw; min-height: 280px; }
  .hero-bottom-bar { padding: 1rem 1.2rem; }
  .hero-bottom-tag { font-size: 0.68rem; letter-spacing: 2px; }
  .hero-bottom-btn { font-size: 0.72rem; }

  /* Section headings */
  .section-title { font-size: 2.2rem; }
  .section-subtitle { font-size: 0.95rem; }

  /* Categories */
  .categories { padding: 2rem 1.2rem; }
  .section-header { margin-bottom: 2.5rem; }
  .category-grid { grid-template-columns: 1fr; gap: 1rem; }
  .category-card { aspect-ratio: 4/3; }
  .category-name { font-size: 1.5rem; }

  /* Products */
  .products { padding: 4rem 1.2rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem; }
  .product-info { padding: 1rem; }
  .product-name { font-size: 0.95rem; }
  .current-price { font-size: 0.95rem; }

  /* Filter tabs */
  .filter-tabs { gap: 0.5rem; margin-bottom: 2rem; }
  .filter-tab { padding: 0.5rem 1rem; font-size: 0.7rem; letter-spacing: 1px; }

  /* Custom section */
  .custom-section { padding: 4rem 1.2rem; }
  .custom-container { gap: 2rem; }
  .custom-content .section-title { font-size: 2.2rem; }
  .custom-content .section-subtitle { font-size: 0.9rem; }
  .custom-features { grid-template-columns: 1fr; gap: 1.2rem; }
  .feature-text h4 { font-size: 0.95rem; }

  /* About */
  .about { padding: 4rem 1.2rem; }
  .about-images { grid-template-columns: 1fr; gap: 1rem; }
  .about-img:first-child { margin-top: 0; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-top: 2rem; margin-top: 2rem; }
  .stat-number { font-size: 1.8rem; }
  .stat-label { font-size: 0.72rem; }

  /* Newsletter */
  .newsletter { padding: 4rem 1.2rem; }
  .newsletter-form { flex-direction: column; gap: 0.8rem; }
  .newsletter-form input { width: 100%; }
  .newsletter-form .btn { width: 100%; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom {
    flex-direction: column; gap: 1.2rem;
    text-align: center; padding-top: 2rem;
  }
  .payment-methods { font-size: 1.2rem; gap: 0.8rem; }
  footer { padding: 4rem 1.2rem 2rem; }

  /* Category sections */
  .category-section { padding: 3rem 1.2rem; }
  .category-section-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .category-products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

/* ── Small Mobile (max 480px) ── */
@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .section-title { font-size: 1.8rem; }
  .products-grid { grid-template-columns: 1fr; }
  .category-products-grid { grid-template-columns: 1fr; }
  .product-image { aspect-ratio: 1/1; }
  .about-stats { grid-template-columns: 1fr; gap: 1.2rem; }
  .cart-header { padding: 1.2rem; }
  .cart-items { padding: 1rem; }
  .cart-footer { padding: 1rem; }
  .cart-item { gap: 1rem; }
  .cart-item-image { width: 80px; height: 100px; }
}

.section-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 3rem;
    background: var(--bg-warm);
}
