/* ==========================================================================
   Frames & Flavors - Master Stylesheet
   Designed for Custom Printing Shop (Karachi, Pakistan)
   Colors: Terracotta (#D86326), Warm Gold (#D4A338), Cream (#FAF7F2), Dark (#332219)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400&display=swap');

:root {
  --primary-color: #D86326;
  --primary-hover: #b84e1b;
  --secondary-color: #D4A338;
  --secondary-hover: #b88b28;
  --bg-color: #FAF7F2;
  --text-color: #332219;
  --text-muted: #6e5c54;
  --card-bg: #FFFFFF;
  --border-color: #EAE3D9;
  --gold-star: #DAA520;
  --whatsapp-color: #25D366;
  --whatsapp-hover: #1eb956;
  
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --shadow-sm: 0 2px 8px rgba(51, 34, 25, 0.04);
  --shadow-md: 0 6px 20px rgba(51, 34, 25, 0.08);
  --shadow-lg: 0 12px 32px rgba(51, 34, 25, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-color);
  line-height: 1.25;
  font-weight: 600;
}

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

.section-title h2 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  margin: 8px auto 0;
  border-radius: 2px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Top Announcement Bar */
.top-bar {
  background: var(--text-color);
  color: #F3ECE2;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.top-bar-info span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.top-bar-socials {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.top-bar-socials a:hover {
  color: var(--secondary-color);
}

/* Header & Navigation */
.header {
  background-color: var(--card-bg);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-color);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-color);
  cursor: pointer;
  padding: 0.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(216, 99, 38, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(216, 99, 38, 0.4);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: #FFFFFF;
}

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

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

.btn-outline:hover {
  background-color: var(--primary-color);
  color: #FFFFFF;
}

.btn-whatsapp {
  background-color: var(--whatsapp-color);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

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

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
}

/* Hero Section */
.hero-slider-section {
  position: relative;
  overflow: hidden;
  background-color: #241611;
  color: #FFFFFF;
}

.hero-slide {
  min-height: 520px;
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 4rem 0;
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(35, 20, 15, 0.88) 0%, rgba(35, 20, 15, 0.5) 60%, rgba(35, 20, 15, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.hero-badge {
  display: inline-block;
  background: rgba(212, 163, 56, 0.2);
  border: 1px solid var(--secondary-color);
  color: var(--secondary-color);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 3rem;
  color: #FFFFFF;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #E3D7CE;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Section Containers & Cards */
.py-section {
  padding: 4rem 0;
}

.bg-alt {
  background-color: #F4EFEA;
}

/* Horizontal Sliders & Carousels (Touch & Mobile Friendly) */
.slider-container {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--border-color);
  -webkit-overflow-scrolling: touch;
}

.slider-container::-webkit-scrollbar {
  height: 6px;
}

.slider-container::-webkit-scrollbar-track {
  background: var(--border-color);
  border-radius: 4px;
}

.slider-container::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

.slider-item {
  scroll-snap-align: start;
  flex: 0 0 calc(25% - 1.15rem);
  min-width: 250px;
}

@media (max-width: 992px) {
  .slider-item { flex: 0 0 calc(33.333% - 1rem); }
}

@media (max-width: 768px) {
  .slider-item { flex: 0 0 calc(50% - 0.75rem); min-width: 210px; }
}

@media (max-width: 480px) {
  .slider-item { flex: 0 0 calc(85% - 0.5rem); min-width: 230px; }
}

/* Category Card */
.category-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: var(--transition);
  display: block;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.category-img {
  height: 170px;
  width: 100%;
  object-fit: cover;
  background: var(--bg-color);
}

.category-info {
  padding: 1.1rem;
}

.category-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.category-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Product Card */
.product-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.product-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #F8F5F0;
  overflow: hidden;
}

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

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

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary-color);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.product-content {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-cat {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--secondary-color);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
}

.product-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-title a:hover {
  color: var(--primary-color);
}

.product-price-row {
  margin-top: auto;
  padding-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-top: 1px dashed var(--border-color);
}

.price-display {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.price-display .currency {
  font-size: 0.85rem;
  font-weight: 600;
}

.price-hidden-badge {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--whatsapp-color);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(37, 211, 102, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* Testimonials Carousel & Cards */
.testimonial-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-stars {
  color: var(--gold-star);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 0.25rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
  font-size: 0.98rem;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.testimonial-event {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* WhatsApp Screenshot Reviews Grid */
.wa-reviews-grid {
  display: grid;
  grid-template-columns: repeat( auto-fit, minmax(260px, 1fr) );
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.wa-review-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.wa-review-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.wa-review-img:hover {
  transform: scale(1.02);
}

.wa-review-caption {
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-color);
  text-align: center;
  background: #FDFBF8;
  border-top: 1px solid var(--border-color);
}

/* Product Detail Page */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 868px) {
  .product-detail-layout { grid-template-columns: 1fr; gap: 2rem; }
}

.detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-detail-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.thumbs-row {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
}

.thumb-img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
}

.thumb-img.active {
  border-color: var(--primary-color);
}

.detail-info {
  display: flex;
  flex-direction: column;
}

.detail-title {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.detail-price-box {
  margin: 1rem 0 1.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
}

.detail-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Forms & Modals */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: #FFFFFF;
  color: var(--text-color);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(216, 99, 38, 0.15);
}

/* Footer */
.footer {
  background-color: var(--text-color);
  color: #E6DCD5;
  padding-top: 4rem;
  padding-bottom: 2rem;
  margin-top: 4rem;
  border-top: 4px solid var(--primary-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 576px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  position: relative;
}

.footer-col h4::after {
  content: '';
  display: block;
  width: 35px;
  height: 2px;
  background: var(--secondary-color);
  margin-top: 6px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: #D1C4BB;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--secondary-color);
  padding-left: 4px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.92rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-contact-item i {
  color: var(--secondary-color);
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
  color: #B5A89E;
}

/* Mobile responsive drawer */
@media (max-width: 992px) {
  .mobile-toggle { display: block; }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--card-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    transition: right 0.35s ease;
    z-index: 999;
  }
  .nav-menu.open { right: 0; }
  .hero-title { font-size: 2.2rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .hero-slide { min-height: 400px; padding: 2.5rem 0; }
  .btn { width: 100%; }
  .hero-cta { flex-direction: column; width: 100%; }
}
