
body {
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: #1E293B;
  font-size: 13.5px;
  line-height: 1.6;
  width: 100%;
}
h1, h2, h3, h4, h5, h6 { color: #0F172A; font-weight: 800; }
a { color: var(--t4-primary); transition: 0.2s; }
a:hover { text-decoration: none; color: var(--t4-secondary); }

/* Top Promo Strip */
.t4-promo-strip {
  background: var(--t4-promo-bg, #07185B);
  color: var(--t4-promo-color, #D5B46A);
  text-align: center;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 800;
  border-bottom: 1px solid rgba(213,180,106,0.3);
}

/* Top Utility Bar */
#top {
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  padding: 6px 0;
  margin: 0;
}
#top .container { padding: 0 15px; }
#top .btn-link, #top-links li, #top-links a {
  color: #334155;
  text-decoration: none;
  font-weight: 700;
  font-size: 12.5px;
}
#top-links ul { margin-bottom: 0; }
#top-links .dropdown-menu a { text-shadow: none; }

/* Main Header */
header {
  background: #FFFFFF;
  padding: 14px 0 12px;
  box-shadow: 0 4px 20px rgba(7,24,91,0.05);
}
#logo { margin: 0; }
#logo img { max-height: 54px; }

/* Search Bar */
#search { margin-bottom: 0; }
#search .input-lg {
  height: 44px;
  line-height: 22px;
  padding: 0 14px;
  border-radius: 12px 0 0 12px;
  border: 2px solid var(--t4-primary);
  font-size: 13.5px;
  box-shadow: none;
}
[dir="rtl"] #search .input-lg { border-radius: 0 12px 12px 0; }
#search .btn-lg {
  height: 44px;
  font-size: 15px;
  line-height: 18px;
  padding: 0 18px;
  background: var(--t4-primary);
  color: var(--t4-accent);
  border: 2px solid var(--t4-primary);
  border-radius: 0 12px 12px 0;
}
[dir="rtl"] #search .btn-lg { border-radius: 12px 0 0 12px; }

/* Header Cart Button */
#cart { margin-bottom: 0; }
#cart > .btn {
  height: 44px;
  font-size: 13px;
  font-weight: 800;
  line-height: 18px;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--t4-primary) 0%, var(--t4-secondary) 100%);
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(7,24,91,0.18);
}
#cart .dropdown-menu {
  background: #fff;
  z-index: 1001;
  min-width: 320px;
  border-radius: 14px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 14px 34px rgba(0,0,0,0.12);
}

/* Main Navigation Menu */
#menu {
  background: linear-gradient(135deg, var(--t4-primary) 0%, var(--t4-secondary) 100%);
  border: none;
  border-radius: 14px;
  min-height: 46px;
  margin-top: 14px;
  margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(7,24,91,0.15);
}
#menu .nav > li > a {
  color: #FFFFFF;
  font-weight: 800;
  font-size: 13.5px;
  padding: 13px 16px;
  background-color: transparent;
}
#menu .nav > li > a:hover, #menu .nav > li.open > a {
  background: rgba(213,180,106,0.2);
  color: var(--t4-accent);
}
#menu .dropdown-menu {
  padding: 8px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
#menu .dropdown-inner { display: table; }
#menu .dropdown-inner ul { display: table-cell; }
#menu .dropdown-inner a {
  min-width: 170px;
  display: block;
  padding: 6px 12px;
  clear: both;
  line-height: 22px;
  color: #1E293B;
  font-weight: 700;
  font-size: 13px;
  border-radius: 8px;
}
#menu .dropdown-inner li a:hover {
  background: var(--t4-primary);
  color: #FFFFFF;
}
#menu .see-all {
  display: block;
  margin-top: 0.5em;
  border-top: 1px solid #E2E8F0;
  padding: 6px 12px;
  border-radius: 0 0 8px 8px;
  font-size: 12.5px;
  font-weight: 800;
}
#menu #category {
  float: right;
  padding-right: 15px;
  font-size: 15px;
  font-weight: 800;
  line-height: 44px;
  color: #fff;
}
#menu .btn-navbar {
  font-size: 15px;
  color: var(--t4-primary);
  padding: 5px 12px;
  float: left;
  background: var(--t4-accent);
  border: none;
  border-radius: 8px;
  margin: 7px 12px;
}

/* Breadcrumb */
.breadcrumb {
  margin: 0 0 18px 0;
  padding: 9px 14px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  border-radius: 10px;
}
.breadcrumb > li { padding: 0 10px; position: relative; white-space: nowrap; font-weight: 700; font-size: 12.5px; }

/* Section Heading */
#content h3 {
  font-weight: 900;
  color: var(--t4-primary);
  font-size: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #E2E8F0;
  position: relative;
  margin-bottom: 20px;
}
#content h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 75px;
  height: 3px;
  background: var(--t4-accent);
  border-radius: 3px;
}

/* Product Card Grid */
.product-thumb {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--t4-radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15,23,42,0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  margin-bottom: 22px;
}
.product-thumb:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(7,24,91,0.12);
  border-color: var(--t4-accent);
}
.product-thumb .image {
  text-align: center;
  padding: 12px;
  background: #FFFFFF;
}
.product-thumb .image a { display: block; }
.product-thumb .image img {
  margin-left: auto;
  margin-right: auto;
  transition: transform 0.35s ease;
  border-radius: 10px;
}
.product-thumb:hover .image img { transform: scale(1.05); }
.product-thumb .caption { padding: 10px 16px 14px; }
.product-thumb h4 { margin-top: 0; margin-bottom: 6px; }
.product-thumb h4 a {
  color: #0F172A;
  font-weight: 800;
  font-size: 14.5px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-thumb .description {
  color: #64748B;
  font-size: 12px;
  line-height: 1.5;
  height: 36px;
  overflow: hidden;
}
.product-thumb .rating { padding-bottom: 6px; }
.rating .fa-stack { font-size: 8px; }
.rating .fa-star-o { color: #CBD5E1; font-size: 14px; }
.rating .fa-star { color: #F59E0B; font-size: 14px; }
.rating .fa-star + .fa-star-o { color: #F59E0B; }

.product-thumb .price {
  color: #059669;
  font-weight: 900;
  font-size: 16.5px;
  margin-top: 8px;
  margin-bottom: 0;
}
.product-thumb .price-new { font-weight: 900; color: #059669; }
.product-thumb .price-old {
  color: #94A3B8;
  text-decoration: line-through;
  font-size: 13px;
  margin-inline-start: 6px;
}
.product-thumb .price-tax { color: #94A3B8; font-size: 11px; display: block; }

.product-thumb .button-group {
  border-top: 1px solid #F1F5F9;
  background: #F8FAFC;
  display: flex;
}
.product-thumb .button-group button {
  border: none;
  display: inline-block;
  background: transparent;
  color: var(--t4-primary);
  line-height: 40px;
  font-weight: 800;
  font-size: 12.5px;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
}
.product-thumb .button-group button:first-child {
  background: var(--t4-primary);
  color: #FFFFFF;
  flex: 2;
}
.product-thumb .button-group button:first-child:hover {
  background: var(--t4-secondary);
  color: var(--t4-accent);
}
.product-thumb .button-group button + button {
  border-inline-start: 1px solid #E2E8F0;
  flex: 0.6;
}
.product-thumb .button-group button + button:hover {
  background: #E2E8F0;
}

/* List View */
.product-list .product-thumb { display: flex; flex-wrap: wrap; align-items: center; }
.product-list .product-thumb .image { flex: 0 0 220px; }
.product-list .product-thumb .caption { flex: 1; }
.product-list .product-thumb .button-group { flex: 0 0 180px; border-top: none; border-inline-start: 1px solid #E2E8F0; flex-direction: column; }

/* Thumbnails on Product Page */
.thumbnails { overflow: auto; clear: both; list-style: none; padding: 0; margin: 0 0 20px; }
.thumbnails > li { margin-bottom: 15px; }
.thumbnails .thumbnail { border-radius: 14px; border: 1px solid #E2E8F0; padding: 8px; background: #fff; }
.image-additional { max-width: 82px; display: inline-block; margin-inline-end: 8px; }

/* Buttons & Panels */
.btn-primary {
  background: linear-gradient(135deg, var(--t4-primary) 0%, var(--t4-secondary) 100%);
  border: none;
  border-radius: 11px;
  font-weight: 800;
  text-shadow: none;
}
.btn-default {
  border-radius: 10px;
  font-weight: 700;
}
.list-group a {
  border: 1px solid #E2E8F0;
  color: #1E293B;
  padding: 10px 14px;
  font-weight: 700;
}
.list-group a.active, .list-group a.active:hover, .list-group a:hover {
  color: #FFFFFF;
  background: var(--t4-primary);
  border-color: var(--t4-primary);
}

/* Footer */
footer {
  margin-top: 40px;
  padding-top: 36px;
  padding-bottom: 20px;
  background: linear-gradient(135deg, #050F38 0%, var(--t4-primary) 100%);
  border-top: 3px solid var(--t4-accent);
  color: #CBD5E1;
}
footer hr { border-top: none; border-bottom: 1px solid rgba(255,255,255,0.12); }
footer a { color: #E2E8F0; font-size: 13px; }
footer a:hover { color: var(--t4-accent); }
footer h5 { font-size: 15px; font-weight: 900; color: var(--t4-accent); }

/* Floating WhatsApp */
.t4-wa-float {
  position: fixed;
  left: 18px;
  width: 54px;
  height: 54px;
  background: #25D366;
  color: #fff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  z-index: 995;
  text-decoration: none !important;
}
.t4-wa-float:hover { transform: scale(1.08); }

/* Mobile Bottom App Dock */
.t4-mobile-dock { display: none; }
@media (max-width: 768px) {
  .t4-mobile-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: #FFFFFF;
    border-top: 1px solid #E2E8F0;
    box-shadow: 0 -4px 18px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    z-index: 998;
    direction: rtl;
  }
  .t4-dock-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: #475569 !important;
    font-size: 11px;
    font-weight: 800;
    gap: 2px;
    position: relative;
  }
  .t4-dock-link i { font-size: 18px; color: var(--t4-primary); }
  .t4-dock-badge {
    position: absolute;
    top: 5px;
    right: 26%;
    background: #EF4444;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    padding: 0 5px;
    border-radius: 99px;
    line-height: 15px;
  }
}
