/* ===============================
   VARIABLES
=============================== */
:root {
  --primary: #04535c;
  --accent: #ffc107;
  --soft: #f8fafc;
  --border: #e5e7eb;
  --radius: 16px;
  --topbar: #088178;  
  --expandcat: #04433F;
  --herocolor: #04535c;
  --highlight: #ffc107;
  --white: #ffffff;
  --customerPara: #000;  
  --cutomerarea: #151d4d;
  --radius-sm: 10px;
  --container-width: 1320px;  
  --sidebar-border: #d1d5db;
  --soft-bg: #f8fafc;  
}

/* ===============================
   GLOBAL STYLES
=============================== */
body {
  font-family: Inter, sans-serif;
  background: var(--soft);
  margin: 0;
  color: #111827;
  cursor: default;
}

.container-custom { max-width: var(--container-width); }

/* Make all clickable items have hand cursor */
a, button, .category-item a, .subcategory span, .icon-btn, .add-cart, .wishlist, .quickview, .nav-link {
  cursor: pointer;
}

/* ===============================
   TOP BAR
=============================== */
.topbar {
  background: var(--topbar);
  padding: 6px 0;
  font-size: 14px;
}
.topbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.topbar a:hover { color: var(--accent); }

/* ===============================
   HEADER
=============================== */
.header {
  background: #fff;
  padding: 12px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
}
.logo {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary);
}


/* ===============================
   LOGO IMAGE SAFE FIX
=============================== */



/* Control logo container */
.logo {
  display: flex;
  align-items: center;
  height: 48px; /* lock vertical space */
  width: 200px;
  
}

/* Control image size */
.logo img {
  height: 70px;       /* main control */
  width: auto;        /* keep aspect ratio */
  max-width: 180px;   /* prevent too wide */
  object-fit: contain;
  display: block;
}

/* Prevent overflow issues */
.logo img {
  max-height: 100%;
  max-width: 100%;
}

/* Mobile adjustment */
@media(max-width:768px){
  .logo {
    height: 42px;
  }
  .logo img {
    height: 34px;
    max-width: 140px;
  }
}











/* SEARCH BOX */
.search-box { position: relative; }
.search-box input {
  height: 46px;
  border-radius: 999px;
  padding-left: 46px;
  border: 1px solid var(--border);
}
.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
}

/* HEADER ICONS */
.header-actions {
  display: flex;
  justify-content: end;
  gap: 10px;
}
.icon-btn {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: .25s;
}
.icon-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent);
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

/* ===============================
   NAVBAR
=============================== */
.navbar { 
  background: var(--primary); 
  position: relative; 
  z-index: 2000;
}
.nav-link {
  color: #fff !important;
  font-weight: 600;
}
.nav-link:hover { color: var(--accent) !important; }

.category-btn {
  background: var(--expandcat);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 800;
}

/* Navbar dropdown fix */
.dropdown-menu {
  position: absolute !important;
  top: 50px;   /* adjust according to navbar height */
  left: 0;
  z-index: 5000 !important;
  min-width: 200px;
}

/* ===============================
   SIDEBAR
=============================== */
.category-list { 
  position: relative;
  z-index: 1000;
  background: var(--soft-bg);
  border: 1px solid var(--sidebar-border);
  border-radius: var(--radius);
  padding: 16px;
}

.category-item {
  position: relative;
}
.category-item a {
  display: flex;
  justify-content: space-between;
  padding: 10px 6px;
  text-decoration: none;
  color: #111;
  font-weight: 600;
  border-bottom: 1px solid #f3f4f6;
  transition: .2s;
}
.category-item:hover a {
  color: var(--primary);
  padding-left: 8px;
}

/* SUBCATEGORY MENU */
.subcategory {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  min-width: 180px;
  box-shadow: 0 10px 25px rgba(0,0,0,.1);
  z-index: 3000;
}
.category-item:hover .subcategory { display: block; }

.subcategory span {
  display: block;
  padding: 6px 10px;
  cursor: pointer;
}
.subcategory span:hover {
  background: var(--soft);
  color: var(--primary);
}

/* ===============================
   HERO SECTION
=============================== */
.hero {
  background: linear-gradient(135deg, var(--herocolor), #033c42);
  color: #fff;
  border-radius: 28px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  height: 400px; /* FIXED HERO HEIGHT DESKTOP */
  display: flex;
  align-items: center;
}
.hero-img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  max-height: 350px;
  object-fit: cover;
}

/* HERO INDICATORS */
.hero-bottom {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 16px;
  background: #fff;
  border-radius: 120px 120px 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.carousel-indicators-custom { display: flex; gap: 12px; }
.indicator {
  width: 12px;
  height: 12px;
  background: #d1d5db;
  border-radius: 50%;
  cursor: pointer;
  transition: .3s;
}
.indicator.active {
  width: 36px;
  border-radius: 999px;
  background: var(--primary);
}

/* ===============================
   DEAL SECTION
=============================== */
.deal-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.deal-nav button {
  background: #fff;
  border: 1px solid #ddd;
  color: var(--primary);
  transition: .25s;
  border-radius: 50%;
  width: 36px;
  height: 36px;
}
.deal-nav button:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.05);
}

/* ===============================
   PRODUCT CARD
=============================== */
.product-card {
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  border: 1px solid var(--border);
  transition: .3s;
  max-width: 250px;
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
}
.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 14px;
}

/* PRODUCT ACTIONS */
.product-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transition: .25s;
}
.product-card:hover .product-actions {
  opacity: 1;
}
.product-actions button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
}
.product-actions button:hover {
  background: var(--primary);
  color: #fff;
}

/* ADD TO CART */
.add-cart {
  width: 100%;
  margin-top: 10px;
  background: linear-gradient(135deg, var(--primary), #033c42);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px;
  font-weight: 900;
  transition: .25s;
}
.add-cart:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(4,83,92,.3);
}

/* ===============================
   MOBILE CART BAR
=============================== */
.mobile-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  z-index: 999;
  box-shadow: 0 -6px 18px rgba(0,0,0,.15);
}

/* ===============================
   PROMO GRID
=============================== */
.promo-grid .promo-box {
  overflow: hidden;
  border-radius: 18px;
  position: relative;
  background: #000;
}
.promo-grid .promo-small { height: 150px; }
.promo-grid .promo-large { height: calc(150px * 2 + 12px); }
.promo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .3s ease;
}
.promo-grid img:hover { transform: scale(1.06); }

/* ===============================
   RESPONSIVE FIXES
=============================== */
@media(max-width: 768px){
  body { padding-bottom: 85px; }
  .deal-nav { display: none; }
  .hero { 
    height: auto !important; 
    padding: 24px; 
    border-radius: 18px; 
  }
  .hero .row { flex-direction: column-reverse; text-align: center; }
  .promo-grid .promo-small { height: 100px; }
  .promo-grid .promo-large { height: calc(100px * 2 + 12px); }
}

/* =============================================================================
                    Login/Registration
  =============================================================================*/
  /* ===============================
   LOGIN / REGISTER PAGE STYLES
=============================== */
.login-body {
  background: linear-gradient(135deg, #04535c, #033c42);
  font-family: Inter, sans-serif;
  color: #111827;
}

.login-container {
  padding: 20px;
}

.login-card {
  background: #fff;
  max-width: 420px;
  width: 100%;
}

.login-card .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(4, 83, 92, 0.25);
}

.login-card .btn-primary {
  background: var(--primary);
  border: none;
  border-radius: 999px;
  padding: 12px 0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.login-card .btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(4, 83, 92, 0.3);
}

.login-card a {
  text-decoration: none;
}

.login-card a:hover {
  color: var(--accent);
}

@media(max-width:768px){
  .login-card { padding: 24px 16px; }
}
