/* --- Reset / Base --- */
* { margin:0; padding:0; box-sizing:border-box; }
:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --fg-2: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e5e5e5;
  --line-2: #cfcfcf;
  --accent: #000000;
  --soft: #f7f7f7;
}
html, body { height:100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, system-ui, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-top: 72px;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- Navigation --- */
nav {
  position: fixed; top:0; left:0; right:0; z-index: 1000;
  background: rgba(255,255,255,0.98);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-container{
  display:flex; align-items:center; justify-content:space-between;
  height:72px; gap:24px; padding: 0 8px;
}
.logo{ 
  font-weight: 900; letter-spacing: 0.4px; text-decoration:none; color: var(--fg);
  font-size: 1.25rem; line-height: 1;
  padding: 10px 12px; border: 2px solid var(--fg); border-radius: 6px;
}
.nav-links{ display:flex; list-style:none; gap: 28px; }
.nav-links a{ text-decoration:none; color: var(--fg); font-weight: 600; }
.nav-links a:hover, .nav-links a.active{ text-decoration: underline; text-underline-offset: 3px; }

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--fg);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}
.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Cart Link with Pill Style */
.cart-link{
  display:flex; align-items:center; gap:8px; text-decoration: none;
  background: var(--fg); color: #fff;
  padding:10px 18px; border-radius:28px; font-weight:700; 
  transition: all 0.2s ease;
  position: relative;
}
.cart-link:hover{ 
  transform: translateY(-2px); 
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.cart-badge{
  background: #10b981; 
  color: #fff;
  min-width: 22px; 
  height: 22px;
  border-radius: 11px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0 6px;
}
.cart-badge.show{
  display: flex;
}

/* Cart Badge Animation */
@keyframes cartPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.cart-badge.animate {
  animation: cartPulse 0.4s ease;
}

@keyframes cartBounce {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-4px); }
  50% { transform: translateY(0); }
  75% { transform: translateY(-2px); }
}
.cart-link.animate {
  animation: cartBounce 0.5s ease;
}

/* --- Buttons --- */
.btn-primary, .btn-secondary{ 
  appearance:none; border:none; cursor:pointer; font-weight:800; letter-spacing:.3px; 
  text-decoration:none; padding: 14px 22px; border-radius: 999px; font-size: 1rem; display:inline-block;
  transition: all 0.2s ease;
}
.btn-primary{ background: var(--accent); color: #fff; }
.btn-primary:hover{ filter: brightness(0.92); }
.btn-secondary{ background: transparent; color: var(--fg); border: 2px solid var(--fg); }
.btn-secondary:hover{ background: var(--fg); color: #fff; }

/* Add to Cart Button on Product Cards */
.btn-add-to-cart {
  appearance: none;
  border: 2px solid var(--fg);
  background: transparent;
  color: var(--fg);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
  width: 100%;
}
.btn-add-to-cart:hover {
  background: var(--fg);
  color: #fff;
  transform: translateY(-1px);
}

/* View Details Button */
.btn-view-details {
  appearance: none;
  border: 1.5px solid var(--line-2);
  background: #fff;
  color: var(--fg);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
  width: 100%;
  text-decoration: none;
  display: block;
  text-align: center;
}
.btn-view-details:hover {
  border-color: var(--fg);
  background: var(--soft);
}

/* --- Hero --- */
.hero{ min-height: calc(50vh - 72px); display:flex; align-items:center; padding: 48px 0; }
.hero-content{ display:grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items:center; }
.hero-text h1{
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05; letter-spacing:-0.5px; margin-bottom: 16px;
}
.hero-text .highlight{ font-style: italic; color: var(--muted); }
.hero-text p{ font-size: 1.125rem; color: var(--muted); max-width: 52ch; margin-bottom: 28px; }
.cta-buttons{ display:flex; flex-wrap:wrap; gap: 14px; }

/* --- Slider --- */
.hero-image{ position:relative; display:flex; justify-content:center; }
.product-slider{ position:relative; width:100%; height: 560px; overflow:hidden; border:0px solid var(--line); border-radius: 10px; background:#fff; }
.slides-wrapper{ position:relative; width:100%; height:100%; }
.slide{ position:absolute; inset:0; opacity:0; transition: opacity .35s ease; display:flex; align-items:stretch; pointer-events: none; }
.slide.active{ opacity:1; pointer-events: auto; }
.slide-image{ 
  flex: 1 1 50%; 
  display:flex; 
  align-items:center; 
  justify-content:center; 
  background: #ffffff; 
  position: relative;
  padding: 20px;
}
.slide-image img{ 
  max-width: 100%; 
  max-height: 100%; 
  width: auto;
  height: auto;
  object-fit: contain;
}
.slide-content{ flex: 1 1 50%; background:#fff; border-left:1px solid var(--line); padding: 36px; display:flex; flex-direction:column; justify-content:center; gap: 12px; }
.slide-title{ font-size: 1.5rem; font-weight: 900; color: var(--fg-2); }
.slide-price{ font-size: 1.25rem; font-weight: 800; color: var(--fg-2); }
.slide-specs{ font-size: .975rem; color: var(--muted); }
.slide-btn{ align-self:flex-start; margin-top:10px; text-decoration: none; cursor: pointer; }

.slider-arrow{ position:absolute; top:50%; transform: translateY(-50%); width:44px; height:44px; border-radius:50%; border:1px solid var(--fg); background:#fff; color:var(--fg); display:flex; align-items:center; justify-content:center; cursor:pointer; font-size: 1.25rem; z-index: 10; }
.slider-arrow:hover{ background: var(--fg); color:#fff; }
.slider-arrow.prev{ left: 12px; }
.slider-arrow.next{ right: 12px; }

.slider-nav{ position:absolute; bottom: 14px; left:50%; transform: translateX(-50%); display:flex; gap:8px; z-index: 10; }
.nav-dot{ width:8px; height:8px; border-radius:50%; background:#cfcfcf; border:1px solid #9a9a9a; cursor:pointer; }
.nav-dot.active{ background:#111; }

/* --- Services --- */
.services{ padding: 24px 0 56px; text-align:center; }
.services-list{ color: var(--muted); font-weight: 600; letter-spacing:.2px; }

/* --- Featured Products --- */
.featured-products{ padding: 60px 0; background: var(--soft); }
.section-title{ font-size: 1.75rem; font-weight: 900; margin-bottom: 32px; text-align: center; }

/* --- Products Grid --- */
.products-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1100px) {
  .products-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .products-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .products-grid{ grid-template-columns: 1fr; }
}
.product-card{ background:#fff; border: 1px solid var(--line-2); border-radius: 10px; transition: transform .12s ease, box-shadow .12s ease; }
.product-card:hover{ transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.06); }
.product-card a { text-decoration: none; color: inherit; display: block; }

/* Square Image Containers with Proper Fitting */
.product-card-image{ 
  width: 100%;
  padding-bottom: 100%; /* Creates 1:1 aspect ratio */
  position: relative;
  background: #ffffff; 
  overflow: hidden; 
  border-bottom: 1px solid var(--line);
}
.product-card-image img{ 
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.product-card-content{ padding: 14px; flex: 1; display: flex; flex-direction: column; }
.product-card-title{ font-weight: 900; font-size: 1.05rem; }
.product-card-price{ font-weight: 800; margin: 6px 0 8px; }
.product-card-description{ font-size: .93rem; color: var(--muted); display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient: vertical; overflow:hidden; flex: 1; }

/* --- Page Header --- */
.page-header{ padding: 56px 0; text-align:center; border-bottom: 1px solid var(--line); background: var(--bg); }
.page-title{ font-size: clamp(28px, 5vw, 48px); font-weight: 900; letter-spacing: -.3px; }

/* --- Category Nav --- */
.category-nav{ display:flex; justify-content:center; gap: 10px; margin: 24px 0; flex-wrap:wrap; }
.category-btn{ padding:10px 16px; border:1.5px solid var(--fg); background:transparent; color:var(--fg); border-radius: 999px; font-weight:800; cursor:pointer; transition: all 0.2s ease; }
.category-btn:hover{ background: var(--fg); color:#fff; }
.category-btn.active{ background: var(--fg); color:#fff; }

/* --- Products Section --- */
.products-section{ margin: 48px 0; }
.section-title-small{ font-size: 1.25rem; font-weight: 900; border-bottom: 2px solid var(--fg); display:inline-block; padding-bottom: 6px; margin-bottom: 18px; }

/* --- Product Detail --- */
.product-detail{ display:grid; grid-template-columns: 1fr 1fr; gap:36px; margin: 40px 0; align-items:start; }
.product-detail-image{ 
  background: #ffffff; 
  border:1px solid var(--line); 
  border-radius: 10px; 
  padding: 16px; 
  min-height: 420px; 
  display:flex; 
  align-items:center; 
  justify-content:center; 
  position: relative;
  aspect-ratio: 1/1;
}
.product-detail-image img{ 
  max-width:100%; 
  max-height:100%; 
  width: auto;
  height: auto;
  object-fit:contain;
}
.product-detail-info h1{ font-size: clamp(24px, 4vw, 40px); font-weight: 900; margin-bottom: 8px; }
.product-detail-price{ font-size: 1.5rem; font-weight: 900; margin: 10px 0 20px; }
.product-features{ list-style:none; margin: 16px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.product-features li{ padding: 10px 0; border-bottom: 1px solid var(--line); }
.product-features li:last-child{ border-bottom:0; }

/* Success Message Box */
.success-box {
  background: #10b981;
  color: #fff;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  text-align: center;
  display: none;
}
.success-box.show {
  display: block;
  animation: slideIn 0.3s ease;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Forms --- */
.callout{ background:#fff; border:1px solid var(--fg); padding: 12px 14px; border-radius: 8px; }
.contact-form{ background: #fff; border: 1px solid var(--line-2); padding: 20px; border-radius: 10px; margin-top: 18px; }
.contact-form h3{ font-size: 1.1rem; margin-bottom: 12px; font-weight: 900; }
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap:14px; }
.form-group{ display:flex; flex-direction:column; gap:6px; margin-bottom: 16px; }
.form-group label{ font-weight: 700; font-size:.95rem; }
.form-group input, .form-group textarea, .form-group select{
  width:100%; padding: 10px 12px; border: 1.5px solid var(--line-2); border-radius: 8px; font-size: 1rem; background:#fff; color: var(--fg);
  transition: border-color .15s ease;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus{ outline:none; border-color: var(--fg); }
.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

/* Checkbox Grid for Contact Form */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

/* --- Quick About --- */
.quick-about{ padding: 60px 0; }
.about-content{ max-width: 860px; margin: 0 auto; text-align:center; }
.about-content h2{ font-size: 2rem; font-weight: 900; margin-bottom: 20px; }
.about-content > p{ font-size: 1.1rem; color: var(--muted); margin-bottom: 36px; }
.about-features{ display:grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 32px; }
.feature-card{ background:#fff; border:1px solid var(--fg); padding: 20px; border-radius: 8px; }
.feature-card h3{ margin-bottom: 8px; font-size: 1.1rem; }
.feature-card p{ color: var(--muted); font-size: 0.95rem; }

/* --- About Page --- */
.about-full{ padding: 48px 0 64px; }
.about-full-content{ max-width: 860px; margin: 0 auto; }
.about-full-content h2{ font-size: 1.75rem; font-weight: 900; margin: 32px 0 16px; }
.about-full-content p{ margin-bottom: 16px; line-height: 1.8; }

/* --- CART PAGE STYLES - SIMPLIFIED MOBILE VERSION --- */
.cart-empty { 
  text-align: center; 
  padding: 80px 20px; 
}

.cart-items { 
  margin: 40px 0; 
}

.cart-item { 
  padding: 20px; 
  background: #fff; 
  border: 1px solid var(--line-2); 
  border-radius: 10px; 
  margin-bottom: 16px; 
}

.cart-item-image { 
  width: 100px; 
  height: 100px; 
  background: #ffffff; 
  border-radius: 8px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 12px;
}

.cart-item-image img { 
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.cart-item-info h3 { 
  font-weight: 900; 
  margin-bottom: 4px; 
  font-size: 1.1rem;
}

.cart-item-info p { 
  color: var(--muted); 
  font-size: 0.9rem; 
  margin: 0 0 8px 0;
}

.cart-item-price { 
  font-weight: 800; 
  font-size: 1.1rem; 
  margin-bottom: 12px;
}

.cart-item-controls { 
  display: flex; 
  justify-content: space-between;
  align-items: center; 
  gap: 16px;
}

.qty-control { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
}

.qty-btn { 
  width: 32px; 
  height: 32px; 
  border: 1.5px solid var(--fg); 
  background: white; 
  border-radius: 6px; 
  cursor: pointer; 
  font-weight: 800; 
}

.qty-btn:hover { 
  background: var(--fg); 
  color: #fff; 
}

.remove-btn { 
  padding: 8px 16px; 
  background: transparent; 
  border: 1.5px solid #EF4444; 
  color: #EF4444; 
  border-radius: 6px; 
  cursor: pointer; 
  font-weight: 700; 
}

.remove-btn:hover { 
  background: #EF4444; 
  color: #fff; 
}

.cart-summary { 
  background: #fff; 
  border: 2px solid var(--fg); 
  border-radius: 10px; 
  padding: 24px; 
  margin: 32px 0; 
}

.summary-row { 
  display: flex; 
  justify-content: space-between; 
  padding: 12px 0; 
  border-bottom: 1px solid var(--line); 
}

.summary-row.total { 
  border-bottom: none; 
  font-size: 1.5rem; 
  font-weight: 900; 
  margin-top: 8px; 
}

/* --- Footer --- */
footer{ background: var(--fg-2); color: #fff; padding: 32px 0; margin-top: 80px; text-align: center; }
footer p{ font-size: 0.9rem; }

/* --- Responsive --- */
@media (max-width: 1200px){ 
  .hero-content{ grid-template-columns: 1fr; gap: 24px; } 
}
@media (max-width: 900px){ 
  .product-detail{ grid-template-columns: 1fr; } 
}
@media (max-width: 768px){
  .mobile-menu-toggle { display: flex; }
  
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: saturate(140%) blur(6px);
    flex-direction: column;
    padding: 20px 24px;
    gap: 0;
    border-bottom: 1px solid var(--line);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .nav-links li {
    border-bottom: 1px solid var(--line);
  }
  
  .nav-links li:last-child {
    border-bottom: none;
  }
  
  .nav-links a {
    display: block;
    padding: 16px 0;
  }
  
  body.menu-open {
    overflow: hidden;
  }
  
  .product-slider{ height: 420px; }
  .slide{ flex-direction: column; }
  .slide-content{ border-left:0; border-top:1px solid var(--line); width:100%; }
  .form-row{ grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
}

.testimonial-banner {
  background: #1a1a1a !important;
  color: white !important;
  padding: 20px 0 !important;
}

@media (max-width: 768px) {
  .slider-nav {
    position: static;
    margin-top: 10px;
    justify-content: center;
  }

  .nav-dot {
    margin: 0 4px;
  }
}

/* Add this to the very end of your styles.css file */

/* Hide slider on mobile - FINAL VERSION */
@media (max-width: 768px) {
  .hero .hero-content .hero-image {
    display: none !important;
  }
  
  .hero .hero-content {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    justify-items: center !important;
  }
  
  .hero .hero-text {
    max-width: 100% !important;
  }
}

/* MOBILE SLIDER HIDE - Add to very end of styles.css */
@media (max-width: 768px) {
  .hero-image {
    display: none !important;
  }
  
  .product-slider {
    display: none !important;
  }
  
  .slide {
    display: none !important;
  }
  
  .slider-arrow {
    display: none !important;
  }
  
  .slider-nav {
    display: none !important;
  }
  
  /* Fix hero layout when slider is hidden */
  .hero-content {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    justify-items: center !important;
  }
}



@media (max-width: 600px) {

  .cart-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-item-image {
    width: 100%;
    max-width: 160px;
    margin: 0 auto 12px auto;
    display: block;
  }

  .cart-item-info {
    width: 100%;
  }

}
