/* Reset and Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary-black: #0a0a0a;
  --secondary-black: #1a1a1a;
  --accent-gold: #c8a97e;
  --light-gray: #f5f5f5;
  --medium-gray: #e5e5e5;
  --text-light: #888;
  --white: #ffffff;

  /* Fix for floating-logo vars that were missing in your file */
  --dark-surface: #111;
  --dark-accent: #c8a97e;
  --dark-accent-light: #d7bb93;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--primary-black);
  background-color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  letter-spacing: 0.5px;
}

a { text-decoration: none; color: inherit; }

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.center { text-align: center; }
.muted { color: var(--text-light); }

/* Announcement Bar */
.announcement-bar {
  background: var(--primary-black);
  color: var(--white);
  text-align: center;
  padding: 10px 20px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 400;
  border-bottom: 1px solid var(--primary-black);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1001;
}

/* Header */
.header {
  position: fixed;
  top: 32px;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--white);
  border-bottom: 1px solid var(--medium-gray);
  padding: 1.5rem 0;
  transition: all 0.3s ease;
}

.header.scrolled {
 padding: 0.6rem 0;   /* tighter */
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Center Logo */
.logo-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 5;
}
.header{
  min-height: 70px;
  display: flex;
  align-items: center;
}

.logo-link { display: inline-flex; align-items: center; justify-content: center; }
.logo-img{
  height: 60px;
  width: auto;
}


/* Icons */
.left-icons, .right-icons {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.icon-link {
  font-size: 1.2rem;
  position: relative;
  transition: all 0.3s ease;
  color: var(--primary-black);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.icon-link:hover { color: var(--accent-gold); transform: scale(1.1); }
.icon-link i { display: block; }

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* Counts */
.cart-count, .wishlist-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--accent-gold);
  color: var(--white);
  font-size: 0.7rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu Panel */
.mobile-menu-panel {
  position: fixed;
  top: 112px;
  left: -100%;
  width: 100%;
  height: calc(100vh - 112px);
  background-color: var(--white);
  z-index: 999;
  transition: left 0.3s ease;
  overflow-y: auto;
  padding: 2rem;
  border-top: 1px solid var(--medium-gray);
}

.mobile-menu-panel.active { left: 0; }

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--medium-gray);
}

.mobile-menu-header h3 {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.close-menu, .close-search, .close-wishlist {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--primary-black);
}

.mobile-nav-links { list-style: none; margin-bottom: 2rem; }

.mobile-nav-link {
  font-size: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--light-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  transition: color 0.3s ease;
}

.mobile-nav-link:hover { color: var(--accent-gold); }

/* Search Overlay */
.search-overlay {
  position: fixed;
  top: 112px;
  left: -100%;
  width: 100%;
  height: calc(100vh - 112px);
  background-color: var(--white);
  z-index: 999;
  transition: left 0.3s ease;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.search-overlay.active { left: 0; }

.search-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--medium-gray);
}

.search-header h3 {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.search-form { width: 100%; margin-bottom: 2rem; }

.search-input {
  width: 100%;
  padding: 1rem;
  border: none;
  border-bottom: 2px solid var(--medium-gray);
  font-size: 1.2rem;
  font-family: 'Inter', sans-serif;
  color: var(--primary-black);
  transition: border-color 0.3s ease;
}

.search-input:focus { outline: none; border-bottom-color: var(--accent-gold); }
.search-results { flex: 1; overflow-y: auto; }

/* Wishlist Panel */
.wishlist-panel {
  position: fixed;
  top: 112px;
  right: -420px;
  width: min(420px, 100%);
  height: calc(100vh - 112px);
  background: var(--white);
  z-index: 999;
  transition: right 0.3s ease;
  border-left: 1px solid var(--medium-gray);
  display: flex;
  flex-direction: column;
}

.wishlist-panel.active { right: 0; }

.wishlist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--medium-gray);
}

.wishlist-header h3 {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.wishlist-body { padding: 1.5rem; overflow-y: auto; flex: 1; }

.wishlist-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--light-gray);
  padding: 1rem 0;
  gap: 1rem;
}

.wishlist-item-title { font-size: 0.95rem; }
.wishlist-remove {
  background: none;
  border: 1px solid var(--medium-gray);
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.wishlist-remove:hover { border-color: var(--accent-gold); color: var(--accent-gold); }

/* Hero */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url('images/Header1.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  margin-top: 112px;
}

.hero-content { max-width: 800px; padding: 2rem; }

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 15px 40px;
  background-color: transparent;
  color: var(--white);
  border: 1px solid var(--white);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn:hover { background-color: var(--white); color: var(--primary-black); }

/* Section Titles */
.section-title { text-align: center; margin: 5rem 0 3rem; font-size: 2.5rem; }

/* Collections */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 5rem;
}

.collection-card { position: relative; overflow: hidden; height: 500px; }
.collection-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.collection-card:hover .collection-img { transform: scale(1.05); }

.collection-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--white);
}
.collection-name { font-size: 1.5rem; margin-bottom: 0.5rem; }

/* Products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 5rem;
}

.product-card { position: relative; }
.product-img-container {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
}

.product-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-img { transform: scale(1.05); }

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--accent-gold);
  color: var(--white);
  padding: 5px 10px;
  font-size: 0.7rem;
  letter-spacing: 1px;
  z-index: 2;
}

.quick-view {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--white);
  color: var(--primary-black);
  padding: 12px 25px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  border: none;
  cursor: pointer;
}

.product-card:hover .quick-view { opacity: 1; }

.product-info { text-align: center; padding-top: 1rem; }
.product-name { font-size: 1.1rem; margin-bottom: 0.5rem; }
.product-price { font-size: 1rem; color: var(--text-light); }

/* Wishlist toggle button on product cards */
.wishlist-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.9);
  z-index: 3;
  transition: transform 0.2s ease;
}
.wishlist-toggle:hover { transform: scale(1.05); }
.wishlist-toggle.active i { color: var(--accent-gold); }

/* About */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin: 6rem 0;
  padding: 4rem 0;
  border-top: 1px solid var(--medium-gray);
  border-bottom: 1px solid var(--medium-gray);
}
.about-img { width: 100%; height: 500px; object-fit: cover; }
.about-content h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
.about-content p { margin-bottom: 1.5rem; color: var(--text-light); line-height: 1.8; }

/* Footer */
.footer {
  background-color: var(--secondary-black);
  color: var(--white);
  padding: 5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 1px;
  background-color: var(--accent-gold);
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: #aaa; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--accent-gold); }

.footer-desc { color: #aaa; margin-bottom: 1.5rem; }

.newsletter-form { display: flex; margin-top: 1.5rem; }
.newsletter-input {
  flex: 1;
  padding: 12px 15px;
  background-color: #333;
  border: none;
  color: var(--white);
  font-family: 'Inter', sans-serif;
}
.newsletter-btn {
  padding: 0 20px;
  background-color: var(--accent-gold);
  border: none;
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.newsletter-btn:hover { background-color: #b89970; }

.social-icons { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}
.social-icon:hover { background-color: var(--accent-gold); }

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #333;
  color: #aaa;
  font-size: 0.9rem;
}

/* Floating Logo */
.floating-logo {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: var(--dark-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 998;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--dark-accent);
  overflow: hidden;
}
.floating-logo.visible { opacity: 1; transform: translateY(0) scale(1); }
.floating-logo:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.4);
  border-color: var(--dark-accent-light);
}
.floating-logo:active { transform: scale(0.95); }
.floating-logo img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: brightness(1.2);
  transition: transform 0.3s ease;
}
.floating-logo:hover img { transform: rotate(5deg) scale(1.1); }

/* Amiri logo button */
.amiri-logo-button {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 70px;
  height: 70px;
  background-color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  z-index: 1000;
  overflow: hidden;
}

.amiri-logo-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.35);
  background-color: #111;
}

.amiri-logo-button img.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.amiri-logo-button:hover img.brand-logo { transform: rotate(5deg); }

.amiri-tooltip {
  position: absolute;
  bottom: 85px;
  right: 0;
  background-color: #000;
  color: white;
  padding: 8px 15px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.amiri-tooltip:after {
  content: '';
  position: absolute;
  top: 100%;
  right: 20px;
  border-width: 5px;
  border-style: solid;
  border-color: #000 transparent transparent transparent;
}

.amiri-logo-button:hover .amiri-tooltip {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (min-width: 769px) {
  .product-img-container { height: 380px; }
}

@media (max-width: 1024px) {
  .hero h1 { font-size: 3rem; }
  .about-section { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .logo-container { position: static; transform: none; order: 2; }
  .header-container { justify-content: space-between; }
  .left-icons { order: 1; }
  .right-icons { order: 3; }

  .products-grid { gap: 1.2rem; }
  .product-img-container { height: 180px; }

  .hero h1 { font-size: 2.5rem; }
  .section-title { font-size: 2rem; }
  .collections-grid { grid-template-columns: 1fr; }
  .announcement-bar { font-size: 0.7rem; padding: 8px 15px; }
  .hero { margin-top: 100px; }
  .icon-link { font-size: 1.1rem; }

  .floating-logo { width: 50px; height: 50px; bottom: 20px; right: 20px; }
  .floating-logo img { width: 25px; height: 25px; }

  .amiri-logo-button { width: 60px; height: 60px; bottom: 90px; right: 20px; }
  .amiri-logo-button img.brand-logo { width: 35px; height: 35px; }
  .amiri-tooltip { bottom: 75px; }
}

@media (max-width: 576px) {
  .container { padding: 0 1rem; }
  .hero h1 { font-size: 2rem; }
  .btn { padding: 12px 30px; }
  .footer-grid { grid-template-columns: 1fr; }
  .announcement-bar { font-size: 0.65rem; letter-spacing: 0.05em; }
  .left-icons, .right-icons { gap: 1rem; }
}

@media (max-width: 480px) {
  .products-grid { gap: 0.8rem; }
  .product-img-container { height: 140px; }

  .floating-logo { width: 45px; height: 45px; bottom: 15px; right: 15px; }
  .floating-logo img { width: 22px; height: 22px; }

  .amiri-logo-button { width: 55px; height: 55px; bottom: 80px; right: 15px; }
  .amiri-logo-button img.brand-logo { width: 30px; height: 30px; }
  .amiri-tooltip { bottom: 70px; }
}

@media (max-width: 768px){
  .logo-img{ height: 56px; }
}

@media (max-width: 480px){
  .logo-img{ height: 50px; }
}
