/* =====================================================
   ROOT VARIABLES (CENTRALIZED DESIGN SYSTEM)
===================================================== */
:root {
    --heading-font: "Josefin Sans", sans-serif;
    --body-font: "Jost", sans-serif;
    /* COLORS */
    --color-white: #fff;
    --color-black: #000;
    --color-primary: #111;
    /* Main Text & Buttons */
    --color-secondary: #222;
    /* Secondary Text */
    --color-text-muted: #888;
    /* Muted Text (MRP, etc) */
    --color-text-light: #555;
    /* Light Paragraph Text */
    --color-text-gray: #666;
    /* Mid Gray */
    --color-border: #eaeaea;
    /* Main Borders */
    --color-border-light: #e5e5e5;
    /* Light Borders */
    --color-border-extralight: #f2f2f2;
    --color-bg-light: #f7f7f7;
    /* Product Bg */
    --color-accent: #e11;
    /* Offer Price / Accent */
    /* SHADOWS */
    --shadow-soft: 0 20px 40px rgba(0, 0, 0, .08);
    --shadow-button: 0 6px 16px rgba(0, 0, 0, .15);
    --shadow-card: 0 6px 20px rgba(0, 0, 0, 0.15);
    /* TRANSITIONS */
    --transition-fast: 0.25s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.35s ease;
    --transition-image: 0.45s ease;
    --transition-slower: 0.6s ease;
}
/* =====================================================
   BASE & BODY
===================================================== */

body {
  font-family: var(--body-font);
  padding-top: 84px;
  color: var(--color-primary);
}

/* =====================================================
   DESKTOP NAVBAR
===================================================== */

.navbar {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  font-family: var(--heading-font);
  z-index: 1000;
}

.nav-link {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 28px 0;
  color: var(--color-primary);
}
.nav-icon{
    text-decoration:none !important;
    color:var(--color-black);
}
.nav-links{
    text-decoration:none !important;
}
/* =====================================================
   LOGO
===================================================== */

.navbar-brand img {
  max-height: 50px;
  width: auto;
  object-fit: contain;
}

/* =====================================================
   MEGA MENU
===================================================== */

.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 340px;
  background: var(--color-white);
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition-fast);
  box-shadow: var(--shadow-soft);
  z-index: 10000;
}

.mega-menu a {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  text-decoration: none;
  color: var(--color-secondary);
}

.mega-menu a:hover {
  color: var(--color-text-muted);
}

.nav-icon {
  font-size: 20px;
  margin-left: 22px;
  cursor: pointer;
}

.search-bar {
  position: fixed;
  top: 84px;
  left: 0;
  width: 100%;
  background: var(--color-white);
  padding: 22px 30px;
  border-bottom: 1px solid var(--color-border-light);
  display: none;
  z-index: 10;
}

.search-bar input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 16px;
  font-family: var(--heading-font);
}

/* =====================================================
   MOBILE HEADER
===================================================== */

.mobile-header { display: none; }
@media (max-width: 1199px) {
    .desktop-only { display: none; }
    .mobile-header {
        display: block;
        position: fixed;
        top: 0;
        width: 100%;
        background: var(--color-white);
        border-bottom: 1px solid var(--color-border);
        z-index: 1000;
    }
    .search-bar { top: 70px; }
}

@media (max-width: 991px) {
  body { padding-top: 64px; }
}

@media (max-width: 500px) {
  .search-bar { top: 60px; }
}

/* =====================================================
   MOBILE LOGO & MENU
===================================================== */

.mobile-logo img {
    margin-left:40px !important;
    height: 50px;
    object-fit: contain;
}

.offcanvas { font-family: var(--heading-font); }

.menu-item {
  padding: 18px 0;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border-extralight);
  cursor: pointer;
}

.menu-item a{
    text-decoration:none;
    color:var(--color-primary);
}
.mobile-login {
  padding: 18px 0;
  font-size: 15px;
  letter-spacing: 1px;
  border-top: 1px solid var(--color-border-extralight);
}

@media (max-width: 500px) {
  .mobile-logo img {
    height: 30px;
    object-fit: contain;
  }
}

.mobile-menu-header {
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 10px;
}

.mobile-menu-header .menu-title {
  font-size: 14px;
  letter-spacing: 2px;
  font-weight: 500;
  color: var(--color-primary);
  text-transform: uppercase;
}

.mobile-menu-header i { cursor: pointer; }


#mobileMenu #mainPanel::-webkit-scrollbar {
  width: 6px;
}

#mobileMenu #mainPanel::-webkit-scrollbar-track {
  background: transparent;
}

#mobileMenu #mainPanel::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  transition: background-color 0.2s ease;
}

#mobileMenu #mainPanel::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.45);
}

/* Firefox support */
#mobileMenu #mainPanel {
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,.35) transparent;
}

/* =====================================================
   SECTION HEADING
===================================================== */

.section-head {
  margin-bottom: 30px;
  padding-left: 10px;
}

.section-head h2 {
  font-family: var(--heading-font);
  font-size: 16px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .section-head { margin-bottom: 20px; }
  .section-head h2 {
    font-size: 14px;
    letter-spacing: 2px;
  }
}

/* =====================================================
   MOBILE CATEGORY SCROLL BAR
===================================================== */

.mobile-category-bar{
    display:none;
}

@media (max-width:1199px){
    
    .mobile-category-bar{
        display:block;
        position:fixed;
        top:80px;
        width:100%;
        background:#fff;
        border-bottom:1px solid var(--color-border);
        z-index:999;
    }
    
    .mobile-category-scroll{
        display:flex;
        overflow-x:auto;
        white-space:nowrap;
        gap:14px;
        padding:10px 14px;
        scrollbar-width:none;
    }
    
    .mobile-category-scroll::-webkit-scrollbar{
        display:none;
    }
    
    .mobile-category-item{
        font-size:13px;
        text-decoration:none;
        color:var(--color-primary);
        border-radius:30px;
        flex-shrink:0;
        transition:0.2s;
    }
    
    .mobile-category-item:hover{
        background:var(--color-primary);
        color:#fff;
    }
    @media (max-width: 500px) {
        .mobile-category-bar{
            top:68px;
        }
    }
}



/* =====================================================
   FOOTER
===================================================== */

.site-footer {
  background: var(--color-white);
  padding: 80px 20px 30px;
  border-top: 1px solid var(--color-border-light);
}

.footer-main {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
}

.footer-logo {
  max-width: 80px;
  margin-bottom: 16px;
}

.footer-brand {
  font-size: 18px;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-light);
  max-width: 320px;
}

.footer-title {
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  font-size: 14px;
  color: var(--color-text-light);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links a:hover { color: var(--color-black); }

.footer-contact {
  list-style: none;
  padding: 0;
}

.footer-contact li {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 12px;
  line-height: 1.6;
}

.footer-contact i { margin-right: 8px; }

.footer-social { margin-top: 18px; }

.footer-social a {
  display: inline-block;
  margin-right: 14px;
  font-size: 18px;
  color: var(--color-black);
}

.footer-bottom {
  max-width: 1300px;
  margin: 50px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--color-border-light);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--color-text-gray);
}
.footer-bottom span a{
    color:var(--color-primary);
    text-decoration:none;
}
.footer-bottom span a:hover{
    color:var(--color-black) !important;
    text-decoration:none;
}
@media (max-width: 991px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .footer-main {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* =====================================================
   CART DRAWER
===================================================== */

.cart-drawer {
  width: 380px;
  font-family: var(--body-font);
  display: flex;
  flex-direction: column;
}

.cart-title {
  font-family: var(--heading-font);
  letter-spacing: 1px;
}

.cart-body {
  flex: 1; 
  overflow-y: auto;
}

.cart-empty {
    margin-top:150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.cart-empty i {
  font-size: 42px;
  color: var(--color-border);
  margin-bottom: 15px;
}

.cart-empty h6 {
  font-family: var(--heading-font);
  letter-spacing: 1px;
}

.cart-empty p {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.continue-shopping {
  font-size: 13px;
  text-decoration: underline;
  color: var(--color-black);
}

.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border-light);
  position: relative;
}

.cart-item img {
  width: 80px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
}

.cart-info { flex: 1; }

.cart-info h6 {
  font-size: 14px;
  margin: 0;
  font-family: var(--heading-font);
}

.cart-variant {
  font-size: 12px;
  color: var(--color-text-muted);
}

.cart-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.qty-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border-light);
  border-radius: 20px;
  overflow: hidden;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: var(--color-white);
  font-size: 16px;
  cursor: pointer;
}

.qty {
  width: 26px;
  text-align: center;
  font-size: 13px;
}

.cart-price {
  font-weight: 600;
  font-size: 14px;
}

.remove-item {
  position: absolute;
  top: 12px;
  right: 0;
  border: none;
  background: none;
  font-size: 18px;
  color: var(--color-text-muted);
  cursor: pointer;
}

.cart-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--color-border-light);
  background: #fff;
  position: sticky;
  bottom: 0;
  z-index: 10;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 15px;
}

.checkout-btn {
  width: 100%;
  padding: 13px;
  background: var(--color-black);
  color: var(--color-white);
  border: none;
  font-family: var(--heading-font);
  letter-spacing: 1px;
}

.cart-action-loader {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    border-radius: 4px;
}

.cart-action-loader.d-none {
    display: none;
}

/* Spinner */
.cart-action-loader::after {
    content: "";
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-top-color: var(--text-dark);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.cart-skeleton {
    padding: 15px;
}

.skeleton-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.skeleton-img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    background: #eee;
    position: relative;
    overflow: hidden;
}

.skeleton-info {
    flex: 1;
}

.skeleton-line {
    height: 12px;
    background: #eee;
    border-radius: 6px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.w-80 { width: 80%; }
.w-60 { width: 60%; }
.w-40 { width: 40%; }

/* shimmer animation */
.skeleton-img::after,
.skeleton-line::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.6),
        transparent
    );
    animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

.cart-footer-skeleton {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-btn {
  height: 44px;
  width: 100%;
  border-radius: 8px;
  background: #eee;
  position: relative;
  overflow: hidden;
}

/* reuse shimmer */
.skeleton-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.6),
    transparent
  );
  animation: shimmer 1.4s infinite;
}


.cart-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 9999;
}

.confetti {
  position: absolute;
  width: 6px;
  height: 10px;
  opacity: 0.9;
  animation: confetti-fall 1.4s ease-out forwards;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(-20px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(420px) rotate(360deg);
    opacity: 0;
  }
}

#cartToast{
	position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px); /* Start off-screen */
    background: #10B981; /* Default Green */
    color: white;
    padding: 14px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 10000;
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--body-font);
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
	pointer-events:none;
}

#cartToast.show{
	transform: translateX(-50%) translateY(0);
    opacity: 1;
	pointer-events:auto; 
}

#cartToast.error{
	background:#dc2626;
}

.cart-close-btn{
    width:36px;
    height:36px;
    border:none;
    background:transparent;
    cursor:pointer;
    border-radius:8px;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:all .2s ease;
}

.cart-close-btn:hover{
    background:#f3f4f6;
    color:#111827;
}

.cart-close-icon{
    width:18px;
    height:18px;
    pointer-events:none;
}
/* =====================================================
   Whatsapp Icon
===================================================== */

.whatsapp-float{
    position: fixed;
    right: 20px;
    bottom: 20px;

    width: 40px;
    height: 40px;

    background: #25D366;
    color: #fff;
    border-radius: 50px;

    display: flex;
    align-items: center;

    font-size: 20px;
    text-decoration: none;

    z-index: 9999;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);

    overflow: hidden;
    transition: width 0.35s ease;
}

/* ICON – always right aligned */
.whatsapp-float i{
    position: absolute;
    right: 0;
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 2;
}

/* TEXT – hidden left */
.whatsapp-text{
    padding-left: 14px;
    padding-right: 50px; /* icon space */

    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;

    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

/* HOVER */
.whatsapp-float:hover{
    width: 190px;
}

/* Show text */
.whatsapp-float:hover .whatsapp-text{
    opacity: 1;
    transform: translateX(0);
}




/* ================================
   GLOBAL PROFESSIONAL SCROLLBAR
================================ */

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.35) transparent;
}

/* Chrome, Edge, Safari */
*::-webkit-scrollbar {
  width: 6px;          /* vertical scrollbar */
  height: 6px;         /* horizontal scrollbar */
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.35);
  border-radius: 10px;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0,0,0,0.55);
}

.cart-drawer,
.offcanvas,
.sidebar,
.modal-body {
  scrollbar-width: thin;
}

.cart-drawer::-webkit-scrollbar,
.offcanvas::-webkit-scrollbar,
.sidebar::-webkit-scrollbar,
.modal-body::-webkit-scrollbar {
  width: 5px;
}

.cart-drawer::-webkit-scrollbar-thumb,
.offcanvas::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.3);
  border-radius: 10px;
}


/* ================================
   GLOBAL Logout Modal
================================ */


.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: all var(--transition-base);
}

.modal-overlay.active {
	opacity: 1;
	visibility: visible;
}

.modal-content {
	background: var(--color-white);
	border-radius: 16px;
	width: 100%;
	max-width: 540px;
	max-height: 90vh;
	overflow: hidden;
	transform: scale(0.9) translateY(20px);
	transition: transform var(--transition-base);
	display: flex;
	flex-direction: column;
}

.modal-overlay.active .modal-content {
	transform: scale(1) translateY(0);
}

.modal-header {
	padding: 20px 24px;
	border-bottom: 1px solid var(--color-border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-shrink: 0;
}

.modal-body {
	padding: 24px;
	overflow-y: auto;
}

.modal-footer {
	padding: 16px 24px;
	border-top: 1px solid var(--color-border);
	background: var(--color-bg-light);
	display: flex;
	gap: 12px;
	justify-content: flex-end;
	flex-shrink: 0;
}

/* Confirm Modal */
.confirm-modal .modal-content {
	max-width: 400px;
}

.confirm-modal .modal-body {
	text-align: center;
	padding: 32px 24px;
}

.confirm-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	background: #fee2e2;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.confirm-icon-confirm {
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	background: #90EE90;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.logout-modal-close{
	background:none;
	border:none;
	cursor:pointer;
	display:flex;
	align-items:center;
	justify-content:center;
}

.logout-title{
	font-size:18px;
	font-weight:600;
	margin-bottom:8px;
	color:#111827;
}

.logout-description{
	font-size:14px;
	color:#6b7280;
	line-height:1.5;
	max-width:320px;
	margin:0 auto;
}

.logout-cancel-btn{
	padding:10px 18px;
	border-radius:8px;
	border:1px solid #e5e7eb;
	background:#f9fafb;
	cursor:pointer;
	font-weight:500;
	transition:all .2s;
}

.logout-cancel-btn:hover{
	background:#f3f4f6;
}

.logout-confirm-btn{
	padding:10px 18px;
	border-radius:8px;
	border:none;
	background:#dc2626;
	color:white;
	font-weight:500;
	cursor:pointer;
	transition:all .2s;
}

.logout-confirm-btn:hover{
	background:#b91c1c;
}