/* ============================================================
   FOREVER X DECOR CONCEPT — Responsive Styles (Indian Luxury Theme)
   ============================================================ */

/* ---- Mobile: Up to 767px ---- */
@media (max-width: 767px) {
  :root {
    --header-height: 64px;
    --announcement-height: 32px;
  }

  .container {
    padding: 0 var(--sp-md);
  }

  /* Header */
  .hamburger {
    display: flex;
  }

  .header-nav {
    display: none;
  }

  .header-logo-brand {
    font-size: var(--fs-md);
    letter-spacing: 1.5px;
  }

  .header-logo-sub {
    font-size: 0.5625rem;
    letter-spacing: 2px;
  }

  .header-logo img,
  .header-logo svg {
    height: 36px;
  }

  .header-action-btn {
    width: 36px;
    height: 36px;
  }

  .header-action-btn svg {
    width: 18px;
    height: 18px;
  }

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

  .hero-content {
    padding: 0;
  }

  .hero-label {
    font-size: 0.65rem;
    letter-spacing: 3px;
    margin-bottom: 6px;
  }

  .hero-title {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
    line-height: 1.2;
    margin-bottom: 8px;
    text-shadow: 0 1px 3px rgba(237, 231, 199, 0.95), 0 0 8px rgba(237, 231, 199, 0.8);
  }

  .hero-desc {
    font-size: 0.8125rem;
    line-height: 1.45;
    margin-bottom: 16px;
    text-shadow: 0 1px 3px rgba(237, 231, 199, 0.95), 0 0 8px rgba(237, 231, 199, 0.8);
  }

  .hero-actions {
    flex-direction: row;
    gap: 8px;
  }

  .hero-actions .btn {
    flex: 1;
    width: auto;
    padding: 10px 14px;
    font-size: 0.72rem;
    letter-spacing: 0.8px;
    text-align: center;
  }

  /* Category Grid */
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-md);
  }

  .category-card {
    aspect-ratio: 1;
  }

  .category-card-name {
    font-size: var(--fs-sm);
  }

  /* Product Grid */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-md);
  }

  .product-card-actions {
    opacity: 1;
    transform: none;
  }

  .product-card-info {
    padding: var(--sp-sm);
  }

  .product-card-name {
    font-size: var(--fs-sm);
    -webkit-line-clamp: 2;
  }

  .product-card-category {
    font-size: 0.625rem;
  }

  .product-card-price {
    font-size: var(--fs-xs);
    margin-bottom: var(--sp-xs);
  }

  .product-card-btns {
    flex-direction: row;
    gap: 6px;
  }

  .product-card-btns .btn {
    padding: 0;
  }

  .product-card-btns .btn-card-icon {
    height: 36px;
  }

  .product-card-btns .btn-card-icon svg {
    width: 17px;
    height: 17px;
  }

  .product-card-action {
    width: 32px;
    height: 32px;
  }

  .product-card-action svg {
    width: 14px;
    height: 14px;
  }

  .product-card-badge {
    font-size: 0.5625rem;
    padding: 2px 7px;
  }

  /* Product Detail */
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
  }

  .product-gallery {
    position: static;
  }

  .product-gallery-thumb {
    width: 58px;
    height: 58px;
  }

  .product-info-name {
    font-size: var(--fs-2xl);
  }

  /* Shop Layout */
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .shop-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1500;
    border-radius: 0;
    overflow-y: auto;
    padding-top: var(--sp-4xl);
  }

  .shop-sidebar.active {
    display: block;
  }

  .shop-sidebar-close {
    position: absolute;
    top: var(--sp-lg);
    right: var(--sp-lg);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-xl);
    cursor: pointer;
    color: var(--clr-espresso);
  }

  .mobile-filter-btn {
    display: flex;
  }

  /* Cart */
  .cart-header {
    display: none;
  }

  .cart-item {
    grid-template-columns: 1fr;
    gap: var(--sp-md);
    position: relative;
  }

  .cart-product {
    gap: var(--sp-md);
  }

  .cart-product-img {
    width: 64px;
    height: 64px;
  }

  .cart-item-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-md);
  }

  .cart-remove {
    position: absolute;
    top: var(--sp-md);
    right: 0;
  }

  .cart-summary {
    max-width: 100%;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
  }

  .footer-col {
    border-bottom: 1px solid rgba(237, 231, 199, 0.1);
    padding-bottom: var(--sp-lg);
  }

  .footer-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-bottom: 0;
    padding: var(--sp-md) 0;
  }

  .footer-heading::after {
    content: '+';
    font-size: var(--fs-xl);
    color: var(--clr-royal-red);
    transition: transform var(--transition-base);
  }

  .footer-col.active .footer-heading::after {
    transform: rotate(45deg);
  }

  .footer-links {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-elegant);
  }

  .footer-col.active .footer-links {
    max-height: 320px;
    padding-top: var(--sp-sm);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--sp-md);
  }

  .footer-bottom .footer-social-links {
    justify-content: center;
  }

  .footer-legal {
    justify-content: center;
  }

  /* Section Spacing */
  .section-header {
    margin-bottom: var(--sp-2xl);
  }

  .section-title {
    font-size: clamp(1.4rem, 4vw, 1.85rem);
  }

  /* Trust Grid */
  .trust-grid {
    grid-template-columns: 1fr;
  }

  /* Promo Banner */
  .promo-banner {
    min-height: 300px;
  }

  .promo-banner-content {
    padding: var(--sp-xl);
  }

  .promo-banner-content h2 {
    font-size: var(--fs-2xl);
  }

  /* Application Grid */
  .app-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* WhatsApp CTA */
  .whatsapp-cta {
    padding: var(--sp-2xl) var(--sp-md);
  }

  /* Reduce "Send Enquiry on WhatsApp" text size by 50% on mobile */
  .whatsapp-cta .btn,
  .whatsapp-cta .wa-general-btn,
  .wa-cart-btn,
  .contact-form .btn-royal,
  .contact-form .btn-lg,
  .contact-form button[type="submit"],
  .wa-contact-btn {
    font-size: calc(var(--fs-base) * 0.5) !important; /* 50% text size reduction */
    padding: 12px 14px !important;
    letter-spacing: 0.8px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
  }

  .whatsapp-cta .btn svg,
  .whatsapp-cta .wa-general-btn svg,
  .wa-cart-btn svg,
  .wa-contact-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
  }

  /* WhatsApp Float */
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 18px;
    right: 18px;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }

  /* Announcement */
  .announcement-item {
    font-size: 0.625rem;
    letter-spacing: 1.5px;
    padding: 0 var(--sp-lg);
  }

  /* Search */
  .search-container {
    width: 95%;
    padding: var(--sp-lg);
  }

  .search-input {
    font-size: var(--fs-md);
  }

  /* Page Header */
  .page-header {
    padding: var(--sp-2xl) 0 var(--sp-xl);
  }

  /* Legal */
  .legal-content {
    padding: var(--sp-xl) var(--sp-md);
  }

  /* Pagination */
  .pagination-btn {
    width: 38px;
    height: 38px;
    font-size: var(--fs-xs);
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
  }

  .contact-form {
    padding: var(--sp-xl) var(--sp-md) !important;
  }
}

/* ---- Small Mobile: Up to 360px ---- */
@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }

  .header-logo-brand {
    font-size: var(--fs-sm);
  }

  .hero-title {
    font-size: 1.625rem;
  }

  .product-grid {
    gap: 8px;
  }

  .product-card-info {
    padding: 8px;
  }

  .product-card-name {
    font-size: 0.75rem;
  }

  .product-card-btns .btn {
    font-size: 0.5625rem;
    padding: 5px 6px;
  }

  .contact-form {
    padding: var(--sp-lg) var(--sp-sm) !important;
  }

  .contact-form .btn-royal,
  .contact-form button[type="submit"],
  .wa-contact-btn {
    font-size: 0.6875rem !important;
    padding: 10px 8px !important;
    letter-spacing: 0.5px !important;
  }

  .mobile-menu {
    width: 88%;
    max-width: 300px;
    padding: 12px 14px 16px;
  }

  .mobile-nav-link {
    font-size: 0.725rem;
    padding: 6px 0;
  }

  .mobile-menu-logo .header-logo-brand {
    font-size: 1rem;
    letter-spacing: 1.5px;
  }
}

/* ---- Tablet: 768px to 1023px ---- */
@media (min-width: 768px) and (max-width: 1023px) {
  .hamburger {
    display: flex;
  }

  .header-nav {
    display: none;
  }

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

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

  .product-detail-grid {
    gap: var(--sp-2xl);
  }

  .shop-layout {
    grid-template-columns: 240px 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-xl);
  }

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

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

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- Desktop: 1024px and up ---- */
@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }

  .header-nav {
    display: flex;
  }

  .mobile-menu,
  .mobile-menu-overlay {
    display: none !important;
  }

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

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

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

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-3xl);
  }
}

/* ---- Large Desktop: 1440px+ ---- */
@media (min-width: 1440px) {
  .container {
    padding: 0 var(--sp-2xl);
  }

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

/* ---- Ultra Wide: 1920px+ ---- */
@media (min-width: 1920px) {
  html {
    font-size: 17px;
  }

  .container {
    max-width: 1440px;
  }
}

/* ---- Mobile Filter Sheet ---- */
@media (max-width: 1023px) {
  .shop-sidebar {
    display: none;
  }

  .shop-sidebar.active {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1500;
    background: var(--clr-cream);
    border-radius: 0;
    overflow-y: auto;
    padding: var(--sp-3xl) var(--sp-xl) var(--sp-xl);
    animation: slideUp 0.3s ease-out;
  }

  @keyframes slideUp {
    from {
      transform: translateY(100%);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  .mobile-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-sm);
    padding: 10px 20px;
    background: var(--clr-cream-card);
    border: 1px solid var(--clr-border-subtle);
    border-radius: var(--radius-xs);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--clr-espresso);
    cursor: pointer;
    transition: all var(--transition-fast);
  }

  .mobile-filter-btn:hover {
    border-color: var(--clr-burgundy);
    color: var(--clr-burgundy);
  }

  .shop-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--sp-xl);
    padding-bottom: var(--sp-md);
    border-bottom: 1px solid var(--clr-border-subtle);
  }

  .shop-sidebar-header h3 {
    font-family: var(--ff-display);
    font-size: var(--fs-xl);
    color: var(--clr-burgundy);
  }
}

/* Desktop: hide mobile-only elements */
@media (min-width: 1024px) {
  .mobile-filter-btn,
  .shop-sidebar-header,
  .shop-sidebar-close {
    display: none;
  }
}

/* ---- Heritage Showcase Slider Responsive ---- */
@media (max-width: 991px) {
  .heritage-frame {
    padding: 10px;
    outline-offset: -5px;
  }

  .heritage-slider {
    aspect-ratio: 16 / 7;
    min-height: 300px;
  }

  .frame-corner {
    width: 40px;
    height: 40px;
  }

  .slider-arrow {
    width: 42px;
    height: 42px;
  }

  .slider-arrow.prev-arrow {
    left: 14px;
  }

  .slider-arrow.next-arrow {
    right: 14px;
  }

  .slide-badge-plaque {
    padding: 8px 16px;
    bottom: 20px;
    left: 20px;
  }
}

@media (max-width: 640px) {
  .heritage-showcase-section {
    padding: var(--sp-xl) 0 var(--sp-2xl);
  }

  .heritage-showcase-wrapper {
    padding: 0 var(--sp-sm);
  }

  .heritage-frame {
    padding: 6px;
    border-width: 2px;
    outline-offset: -4px;
  }

  .heritage-slider {
    aspect-ratio: 16 / 8;
    min-height: 230px;
  }

  .frame-corner {
    width: 32px;
    height: 32px;
  }

  .frame-crest {
    display: none;
  }

  .slider-arrow {
    width: 36px;
    height: 36px;
  }

  .slider-arrow.prev-arrow {
    left: 8px;
  }

  .slider-arrow.next-arrow {
    right: 8px;
  }

  .slider-arrow svg {
    width: 18px;
    height: 18px;
  }

  .slide-badge-plaque {
    padding: 5px 12px;
    bottom: 36px;
    left: 10px;
    max-width: calc(100% - 20px);
  }

  .plaque-tag {
    font-size: 0.625rem;
    letter-spacing: 1px;
    margin-bottom: 1px;
  }

  .plaque-title {
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .slider-dots-container {
    bottom: 10px;
    padding: 3px 10px;
    gap: 7px;
  }

  .slider-dot .dot-inner {
    width: 7px;
    height: 7px;
  }

  .slider-dot.active .dot-inner {
    width: 20px;
  }
}



/* ---- Print Styles ---- */
@media print {
  .announcement-bar,
  .site-header,
  .whatsapp-float,
  .site-footer,
  .mobile-menu,
  .mobile-menu-overlay {
    display: none !important;
  }

  body {
    background: #EDE7C7;
    color: #200E01;
    font-size: 12pt;
  }
}
