/* 
  AL-TAYYAB FABRICS - Premium CSS
  Theme: Black, White, Gold, Light Gray
*/

:root {
  --primary: #0a0a0a;
  --secondary: #ffffff;
  --accent: #d4af37;
  --accent-gradient: linear-gradient(135deg, #f4e4bc 0%, #d4af37 50%, #aa8623 100%);
  --accent-light: #f4e4bc;
  --gray-light: #f9f9f9;
  --gray-mid: #999999;
  --text: #333333;
  --font-main: 'Montserrat', sans-serif;
  --font-display: 'Cormorant Garamond', serif;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --shadow: 0 15px 35px rgba(0,0,0,0.15);
  --shadow-gold: 0 10px 25px rgba(212, 175, 55, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text);
  line-height: 1.6;
  background-color: var(--secondary);
  overflow-x: hidden;
}

h1, h2, h3, h4, .logo-main, .logo-ar {
  font-family: var(--font-display);
  font-weight: 600;
}

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

ul {
  list-style: none;
}

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

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 600;
}

.section-eyebrow.light {
  color: var(--accent-light);
}

.section-title {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.section-title.light {
  color: var(--secondary);
}

.gold-divider {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 15px 40px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.btn-gold {
  background: var(--accent-gradient);
  color: var(--primary);
  border: 1px solid transparent;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

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

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

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.75);
  padding: 15px 0;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: var(--shadow);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--secondary);
}

.logo-ar {
  font-size: 2rem;
  color: var(--accent);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-size: 1.5rem;
  letter-spacing: 2px;
  line-height: 1;
}

.logo-sub {
  font-size: 0.7rem;
  letter-spacing: 5px;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: var(--secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  position: relative;
}

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

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

.nav-wa {
  padding: 10px 20px;
  font-size: 0.75rem;
  border-radius: 50px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--secondary);
  margin: 5px 0;
  transition: var(--transition);
}

/* HERO */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--secondary);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  animation: zoomOut 15s infinite alternate;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.8) 100%);
}

.hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.hero-title {
  font-size: 5rem;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-title em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.hero-desc {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
  font-weight: 300;
}

.hero-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.3);
  margin: 15px auto 0;
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: var(--accent);
  animation: scrollDown 2s infinite;
}

/* MARQUEE */
.marquee-bar {
  background: var(--primary);
  padding: 20px 0;
  overflow: hidden;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}

.marquee-track span {
  font-size: 1rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-family: var(--font-display);
  padding: 0 30px;
  display: flex;
  align-items: center;
}

.dot {
  color: var(--accent) !important;
  font-size: 0.8rem !important;
}

/* CATEGORIES */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 400px);
  gap: 20px;
}

.cat-card {
  position: relative;
  overflow: hidden;
  background: var(--primary);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: all 0.5s ease;
}

.cat-card:hover {
  box-shadow: var(--shadow-gold);
  z-index: 1;
}

.cat-tall {
  grid-row: span 2;
}

.cat-img-wrap {
  width: 100%;
  height: 100%;
}

.cat-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.cat-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.8));
}

.cat-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px;
  color: var(--secondary);
  transition: var(--transition);
}

.cat-info h3 {
  font-size: 2rem;
  margin-bottom: 5px;
}

.cat-info p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 15px;
}

.cat-cta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}

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

.cat-card:hover .cat-info {
  transform: translateY(-10px);
}

.cat-card:hover .cat-cta {
  opacity: 1;
  transform: translateY(0);
}

/* LATEST SECTION */
.latest-section {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.latest-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

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

.latest-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
}

.latest-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.latest-desc {
  color: var(--secondary);
  font-size: 1.2rem;
  margin: 30px 0 40px;
  opacity: 0.9;
}

/* WHY US */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.why-section {
  position: relative;
  background: var(--primary);
  background-image: url('images/shop.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--secondary);
}

.why-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(10, 10, 10, 0.85);
  z-index: 0;
}

.why-section .container {
  position: relative;
  z-index: 1;
}

.why-section .section-title {
  color: var(--secondary);
}

.why-card {
  text-align: center;
  padding: 40px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 16px;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.why-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.25);
  transform: translateY(-10px) scale(1.02);
}

.why-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.why-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--secondary);
}

.why-card p {
  color: rgba(255, 255, 255, 0.75);
}

/* REVIEWS CAROUSEL */
.reviews-container {
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.reviews-slider {
  display: flex;
  transition: transform 0.5s ease;
}

.review-slide {
  min-width: 100%;
  padding: 0 15px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.slider-dots .dot.active {
  background: var(--accent);
  width: 30px;
  border-radius: 10px;
}

.testimonials-section {
  background: var(--primary);
  color: var(--secondary);
}

.testi-card {
  padding: 50px;
  background: rgba(255,255,255,0.05);
  border-left: 4px solid var(--accent);
  text-align: center;
  border-radius: 0 16px 16px 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.testi-stars {
  color: var(--accent);
  margin-bottom: 15px;
  font-size: 0.8rem;
}

.testi-card p {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.8;
}

.testi-author {
  display: flex;
  flex-direction: column;
}

.testi-name {
  font-weight: 700;
  color: var(--secondary);
}

.testi-loc {
  font-size: 0.8rem;
  color: var(--accent);
}

/* STORE PREVIEW */
.store-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.store-img-main {
  position: relative;
}

.store-img-main img {
  border-radius: 5px;
  box-shadow: var(--shadow);
}

.store-badge {
  position: absolute;
  top: 40px;
  right: -20px;
  background: var(--accent);
  color: var(--primary);
  padding: 10px 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  transform: rotate(90deg);
}

.store-info h3 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.store-details {
  margin: 30px 0;
}

.store-details li {
  margin-bottom: 15px;
  display: flex;
  gap: 15px;
  align-items: center;
}

.store-details i {
  color: var(--accent);
  width: 20px;
}

.store-btns {
  display: flex;
  gap: 20px;
}

/* FAQ ACCORDION */
.faq-item {
  background: var(--gray-light);
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid transparent;
}

.faq-item:hover {
  border-color: var(--accent);
}

.faq-question {
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question h3 {
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
}

.faq-icon {
  color: var(--accent);
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0, 1, 0, 1);
  background: #fff;
}

.faq-answer p {
  padding: 20px 30px;
  color: var(--text);
  font-size: 0.95rem;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  transition: all 0.5s cubic-bezier(1, 0, 1, 0);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* FOOTER */
.footer {
  background: var(--primary);
  color: var(--secondary);
  padding-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  margin: 20px 0;
  color: var(--gray-mid);
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--secondary);
}

.footer-socials a:hover {
  background: var(--accent);
  color: var(--primary);
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: var(--gray-mid);
  font-size: 0.9rem;
}

.footer-col ul li a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-contact li {
  color: var(--gray-mid);
  font-size: 0.9rem;
  margin-bottom: 15px;
  display: flex;
  gap: 10px;
}

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

.footer-bottom {
  padding: 30px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}

.footer-bottom p {
  color: var(--gray-mid);
  font-size: 0.8rem;
}

/* WHATSAPP FLOAT */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.wa-tooltip {
  position: absolute;
  right: 75px;
  background: var(--primary);
  color: var(--secondary);
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.whatsapp-float:hover .wa-tooltip {
  opacity: 1;
}

/* ANIMATIONS */
@keyframes zoomOut {
  from { transform: scale(1.1); }
  to { transform: scale(1); }
}

@keyframes scrollDown {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
}

.animate-fade-up.active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.delay-1 { transition-delay: 0.2s !important; }
.delay-2 { transition-delay: 0.4s !important; }
.delay-3 { transition-delay: 0.6s !important; }
.delay-4 { transition-delay: 0.8s !important; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-title { font-size: 4rem; }
  .cat-grid { grid-template-rows: repeat(2, 300px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-wa { display: none; }
  .hamburger { display: block; }
  
  .hero-title { font-size: 3rem; }
  .hero-btns { flex-direction: column; }
  
  .cat-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .cat-tall { grid-row: auto; }
  .cat-card { height: 400px; }
  
  .store-layout { grid-template-columns: 1fr; }
  .store-badge { transform: none; top: -10px; right: 10px; }
  
  .section-title { font-size: 2.2rem; }
}

/* Mobile Menu State */
.nav-links.mobile-active {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  height: 100vh;
  background: var(--primary);
  padding: 100px 40px;
  z-index: 999;
}

/* =========================================
   PAGE SPECIFIC ENHANCEMENTS
   ========================================= */

/* PRODUCTS PAGE */
.product-section { 
  padding: 100px 0; 
  border-bottom: 1px solid rgba(212, 175, 55, 0.1); 
}
.product-section:last-child { border-bottom: none; }
.product-display { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 80px; 
  align-items: center; 
}
.product-display.reverse { direction: rtl; }
.product-display.reverse .product-text { direction: ltr; }
.product-img { position: relative; }
.product-img img { 
  width: 100%; 
  border-radius: 16px; 
  box-shadow: var(--shadow); 
  transition: var(--transition); 
}
.product-display:hover .product-img img { 
  transform: scale(1.03); 
  box-shadow: var(--shadow-gold); 
}
.product-text ul {
  margin: 25px 0;
  padding-left: 0;
  list-style: none;
}
.product-text li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  color: var(--text);
}
.product-text li::before {
  content: '◆';
  color: var(--accent);
  position: absolute;
  left: 0;
  font-size: 0.8rem;
  top: 2px;
}

@media (max-width: 900px) {
  .product-display { grid-template-columns: 1fr; gap: 40px; }
  .product-display.reverse { direction: ltr; }
}

/* COLLECTION PAGE */
.collection-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
  gap: 40px; 
  padding: 60px 0; 
}
.product-item { 
  position: relative; 
  overflow: hidden; 
  background: var(--gray-light); 
  box-shadow: var(--shadow); 
  border-radius: 16px; 
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
}
.product-item:hover { 
  transform: translateY(-10px); 
  box-shadow: var(--shadow-gold); 
  border-color: var(--accent);
}
.product-item img { 
  width: 100%; 
  height: 350px;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1); 
}
.product-item:hover img { transform: scale(1.1); }
.new-badge { 
  position: absolute; 
  top: 20px; 
  left: 20px; 
  background: var(--accent-gradient); 
  color: var(--primary); 
  padding: 8px 20px; 
  font-size: 0.75rem; 
  font-weight: 700; 
  text-transform: uppercase; 
  letter-spacing: 1px;
  z-index: 2; 
  border-radius: 30px;
  box-shadow: var(--shadow-gold);
}
.product-item-info { 
  padding: 30px; 
  text-align: center; 
  background: var(--primary);
  color: var(--secondary);
}
.product-item-info h4 { 
  font-size: 1.4rem; 
  margin-bottom: 10px; 
}
.product-item-info p { 
  color: var(--accent); 
  font-weight: 600; 
  letter-spacing: 1px;
}

/* SCROLL TO TOP BUTTON */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent-gradient);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-gold);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 99;
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}
.scroll-top:hover {
  transform: translateY(-5px);
  background: var(--primary);
  color: var(--accent);
  border: 1px solid var(--accent);
}
@media (max-width: 768px) {
  .scroll-top {
    bottom: 90px; /* Above whatsapp float */
    right: 20px;
  }
}
