/* =====================================================
   FONT
===================================================== */
@font-face {
    font-family: 'Mahalini';
    src: url('fonts/Mahalini.woff2') format('woff2'),
         url('fonts/Mahalini.woff') format('woff'),
         url('fonts/Mahalini.ttf') format('truetype'),
         url('fonts/Mahalini.otf') format('opentype');
    font-weight: normal;
            
}


/* =====================================================
   RESET & BASE
===================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
 font-family: 'Mahalini';
  color: #111;
  line-height: 1.6;
}

:root {
  --gold: #000000;
  --black: #111;
  --gray: #f6f6f6;
  --border: #e6e6e6;
  --white:#fff;
}

/* =====================================================
    HEADER (CENTERED PILL LAYOUT)
===================================================== */


/* =====================================================
    NAV MENU
===================================================== */
nav ul {
    display: flex;
    list-style: none;
    gap: 30px; /* Even spacing between links */
    margin: 0;
    padding: 0;
}

nav a {
font-family: 'Mahalini';   color: #fff;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

/* Underline hover animation */
nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #fff; /* or var(--gold) */
    transition: width 0.35s ease;
}

nav a:hover::after {
    width: 100%;
}

/* =====================================================
    RIGHT GROUP (SOCIAL + CART)
===================================================== */
.right-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links svg {
    width: 26px;
    height: 26px;
    fill: #000000;
}

.social-links a:hover {
    background: var(--white,);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* =====================================================
    RESPONSIVE ADJUSTMENT
===================================================== */
@media (max-width: 1100px) {
    header {
        width: 95%;
        padding: 10px 25px;
    }
    nav ul {
        gap: 20px;
    }
}

/* =====================================================
   MOBILE MENU TOGGLE
===================================================== */
/* .menu-toggle {
  width: 26px;
  height: 18px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 100%;
  background: #fff I !important;
  border-radius: 10px;
  transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
} */

/* =====================================================
   CATEGORY PAGE
===================================================== */
.products-page {
  padding: 70px 6% 80px;
}

.page-title {
font-family: 'Mahalini';  text-align: center;
  font-size: 2.4rem;
  letter-spacing: 2px;
  margin-bottom: 40px;
   font-weight: 500;
}

.search-container {
  text-align: center;
  margin-bottom: 40px;
}

.search-container input {
  width: 300px;
  max-width: 90%;
  padding: 12px 20px;
  border-radius: 30px;
  border: 1px solid var(--border);
}

/* product grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
  gap: 32px;
}

/* card */
.product-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  text-align: center;
  transition: 0.35s ease;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 35px rgba(0,0,0,0.08);
}

.product-img {
  height: 280px;
  background: var(--gray);
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-content {
  padding: 18px;
}

.product-content h3 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.price {
  color: black;
  font-weight: 700;
  margin-bottom: 16px;
   border-radius: 30px;
  font-size: 1.2rem;
}

/* buttons */
.card-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.view-btn {
  padding: 8px 40px;
  border-radius: 30px;
  font-size: 0.95rem;
  border: 2px solid #000;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  color: #000;
}

.add-btn {
  background: #000;
  color: #fff;
}

.add-btn, .view-btn:hover {
  background: black;
   color: #ffffff;
  border-color: black;
}

/* =====================================================
   SINGLE PRODUCT PAGE
===================================================== */
:root {
    --gold: #000000;
    --border: #ececec;
    --text-main: #333;
    --text-muted: #666;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.single-product {
    padding: 40px 5%; /* Balanced padding */
    max-width: 1400px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 25px;
    text-decoration: none;
    font-weight: 500;
    color: var(--black);
    transition: var(--transition);
}

.back-link:hover {
    color: var(--text-muted);
    transform: translateX(-5px);
}

.single-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; /* Slightly larger gallery side */
    gap: 50px;
    align-items: start;
}

/* =========================
   GALLERY (Responsive Fix)
========================= */

.single-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.main-img {
    width: 100%;
    aspect-ratio: 4 / 5; /* Keeps a consistent portrait shape */
    max-height: 700px;
    background: #f9f9f9;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.main-img.zooming img {
    transform: scale(1.4);
}

.thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
}

.thumb {
    aspect-ratio: 1/1;
    border-radius: 12px;
    border: 2px solid transparent;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.thumb.active {
    border-color: var(--gold);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================
   PRODUCT INFO
========================= */

.single-info {
    display: flex;
    flex-direction: column;
}

.single-info h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem); /* Responsive font size */
    margin-bottom: 10px;
    color: var(--text-main);
}

.single-price {
    color: black;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.single-desc {
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.8;
    font-size: 1.5rem;
}

.qty-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.qty-row input {
    width: 80px;
    height: 50px;
    text-align: center;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 1rem;
}

/* =========================
   BUTTONS (Full Width Mobile)
========================= */

.order-btn {
    width: 100%; /* Changed to 100% for better alignment */
    max-width: 400px;
    padding: 18px;
    border-radius: 50px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    margin-bottom: 15px;
    transition: var(--transition);
    background: #000;
    color: #fff;
}

.order-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    background: #222;
}

.order-btn.outline {
    background: transparent;
    color: #000;
    border: 2px solid #000;
}

.order-btn.outline:hover {
    background: #000;
    color: #fff;
}

/* =========================
   RELATED PRODUCTS (Fixed)
========================= */

.related-wrap {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--border);
    width: 100%;
}

.related-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
     font-weight: 500;
 font-family: 'Mahalini';

}
/* The Grid: Auto-adjusts from 1 to 4 columns */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    width: 100%;
}

.related-card {
    text-decoration: none; /* Removes underline from links */
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    background: #dddddd;
    border-radius: 20px;
    padding: 10px;
}

.related-card:hover {
    transform: translateY(-10px);
}

.related-img {
    width: 100%;
    aspect-ratio: 1 / 1; /* Makes images perfectly square */
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #f3f3f3;
}

.related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover .related-img img {
    transform: scale(1.1);
}

/* Info Section */
.related-info {
    text-align: center;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* Even vertical gap between title and price */
}

.related-info h4 {
 font-family: 'Mahalini';   font-size: 1.1rem;
    font-weight: 500;
    color: #111;
    margin: 0;
    text-decoration: none; /* Extra safety */
    line-height: 1.4;
    transition: color 0.3s ease;
}
.related-card a {
    text-decoration: none !important; /* Forces underline to disappear */
    color: inherit;
    display: block;
    border: none;
    outline: none;
}
/* Catchy Premium Price Pill */
.related-info p {
    display: inline-block;
    margin: 0; /* Removes default paragraph margins */
    padding: 6px 22px;
    background: #f4f4f4;
    color: black;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Hover Effects */
.related-card:hover {
    text-decoration: none; /* Ensures no underline appears on hover */
}

.related-card:hover .related-info h4 {
    color: var(--gold);
    text-decoration: none;
}

.related-card:hover .related-info p {
    background: #000;
    color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
/* The "Shine" Effect on the Price Pill */
/* .related-info p::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(30deg);
    transition: none;
} */

/* .related-card:hover .related-info p::after {
    left: 120%;
    transition: all 0.6s ease; /* Shine swipe on hover */

/* Responsive Tweak for Mobile */
@media (max-width: 500px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 items per row on mobile */
        gap: 15px;
    }
    
    .related-info h4 {
        font-size: 0.9rem;
    }
    
    .related-info p {
        font-size: 0.8rem;
        padding: 4px 12px;
    }
}
/* =========================
   RESPONSIVE MEDIA QUERIES
========================= */

@media (max-width: 1024px) {
    .single-grid {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .single-grid {
        grid-template-columns: 1fr; /* Stack layout on tablets/phones */
    }
    
    .single-product {
        padding: 20px 4%;
    }

    .main-img {
        max-height: 500px;
    }

    .order-btn {
        max-width: 100%; /* Buttons take full width on mobile */
    }
}

@media (max-width: 480px) {
    .single-info h1 {
        font-size: 1.6rem;
    }
    
    .thumbs {
        grid-template-columns: repeat(4, 1fr); /* 4 thumbs per row on tiny screens */
    }
}
/* =====================================================
   CART POPUP
===================================================== */
/* ==============================
   CART POPUP – PREMIUM STYLE
================================ */

/* Overlay feel without extra div */
.cart-popup {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 100%;
  height: 100vh;
  background: #ffffff;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1);
  box-shadow: -20px 0 45px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
}

/* Open state */
.cart-popup.show {
  transform: translateX(0);
}

/* ==============================
   CART HEADER
================================ */
.cart-header {
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
}

.cart-header h3 {
font-family: 'Mahalini'; font-size: 1.7rem;
  letter-spacing: 1px;
   font-weight: 500;
}

.close-cart {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f3f3f3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s ease;
}

.close-cart:hover {
  background: #000;
  color: #000000;
  transform: rotate(90deg);
}

/* ==============================
   CART ITEMS LIST
================================ */
.cart-items-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Individual cart item (JS creates this) */
.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 24px !important;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #f2f2f2;
}

.cart-item img {
  width: 85px !important;
  height: 85px !important;
  border-radius: 14px;
  object-fit: cover;
  background: #f6f6f6;
}

.cart-item h4 {
  font-size: 1.2rem !important;
  font-weight: 500;
  margin-bottom: 4px;
}

.cart-item p {
  color:black !important;
  font-weight: 700;
  font-size: 1rem !important;
}

/* Qty + Remove */
.cart-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.cart-actions input {
  width: 48px;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid #ddd;
  text-align: center;
  font-size: 0.85rem;
}

.remove-btn {
  background: none;
  border: none;
  color: #ff4d4d;
  font-size: 24px;
  cursor: pointer;
}

/* ==============================
   CART FOOTER
================================ */
.cart-footer {
  padding: 22px 24px;
  border-top: 1px solid #f0f0f0;
  box-shadow: 0 -10px 25px rgba(0,0,0,0.03);
}

.cart-footer h4 {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 16px;
}

/* WhatsApp Button */
.btn-whatsapp {
  background: #000000;
  color: #ffffff;
  border: none;
  padding: 16px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

.btn-whatsapp:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(37, 211, 102, 0.25);
}

/* ==============================
   MOBILE RESPONSIVE
================================ */
@media (max-width: 480px) {
  .cart-popup {
    width: 100%;
  }

  .cart-header h3 {
    font-size: 1.2rem;
  }

  .cart-item {
    grid-template-columns: 60px 1fr auto;
  }

  .cart-item img {
    width: 60px;
    height: 60px;
  }
}


/* =====================================================
   RESPONSIVE
===================================================== */

/* ==============================
   CART ITEM POLISH
================================ */
.cart-items-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 14px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f0f0;
}

.cart-item img {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
  background: #f6f6f6;
}

.cart-item h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.cart-item p {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
}

.cart-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.cart-actions input {
  width: 50px;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid #ddd;
  text-align: center;
}

.remove-btn {
  background: none;
  border: none;
  color: #ff4d4d;
  font-size: 0.75rem;
  cursor: pointer;
}
.main-img {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}

.main-img img {
  transition: transform 0.15s ease-out;
  transform-origin: center center;
}

.main-img.zooming img {
  transform: scale(2.2);
}