/* ============================================================
   House of Renji - Complete E-commerce Styles
   ============================================================ */

:root {
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --gray: #6c757d;
  --black: #1c1c1c;
  --gold: #d4af37;
  --gold-light: #e8c84a;
  --gold-dark: #b8972e;
  --font-primary: 'Segoe UI', 'Poppins', Arial, sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-primary);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

a { transition: var(--transition-fast); }
a:hover { text-decoration: none; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes scrollText {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
@keyframes countdownPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.fade-in-up { animation: fadeInUp 0.6s ease both; }
.fade-in { animation: fadeIn 0.5s ease both; }
.slide-down { animation: slideDown 0.4s ease both; }
.scale-in { animation: scaleIn 0.4s ease both; }
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
  background: var(--black);
  color: var(--gold);
  text-align: center;
  padding: 8px 0;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  overflow: hidden;
}
.announcement-bar .scrolling-text {
  display: inline-block;
  white-space: nowrap;
  animation: scrollText 25s linear infinite;
}

/* ===== NAVBAR ===== */
.navbar {
  background: var(--black);
  padding: 12px 0;
  transition: var(--transition-normal);
  border-bottom: 2px solid rgba(212, 175, 55, 0.2);
}
.navbar.navbar-sticky {
  position: sticky;
  top: 0;
  z-index: 1050;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.navbar-brand {
  color: var(--gold) !important;
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
}
.navbar-brand img {
  height: 44px;
  margin-right: 10px;
  border-radius: 50%;
  transition: var(--transition-normal);
}
.navbar-brand:hover img { transform: rotate(5deg) scale(1.05); }
.nav-link {
  color: #fff !important;
  font-weight: 500;
  padding: 8px 16px !important;
  border-radius: 25px;
  transition: var(--transition-fast);
}
.nav-link:hover { color: var(--gold) !important; background: rgba(212, 175, 55, 0.1); }
.nav-link i { margin-right: 6px; }
.navbar-toggler { border: none; outline: none; }
.navbar-toggler-icon { color: var(--gold); font-size: 1.4rem; }

/* ===== HERO CAROUSEL ===== */
.hero-carousel { position: relative; }
.hero-carousel .carousel-item { height: 520px; background-size: cover; background-position: center; position: relative; }
.hero-carousel .carousel-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}
.hero-carousel .carousel-caption {
  bottom: 50%;
  transform: translateY(50%);
  z-index: 5;
  text-align: left;
  left: 10%;
  right: 10%;
  max-width: 600px;
}
.hero-carousel .carousel-caption h1 {
  font-size: 3.2rem;
  font-weight: 800;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
  animation: fadeInUp 0.8s ease;
}
.hero-carousel .carousel-caption p {
  font-size: 1.2rem;
  opacity: 0.9;
  animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-carousel .carousel-caption .btn {
  animation: fadeInUp 0.8s ease 0.4s both;
}
.hero-carousel .carousel-indicators li {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.5;
  border: 2px solid var(--gold);
}
.hero-carousel .carousel-indicators li.active { opacity: 1; background: var(--gold); }

/* ===== SECTION TITLES ===== */
.section-title {
  position: relative;
  font-weight: 800;
  font-size: 1.8rem;
  margin-bottom: 30px;
  padding-bottom: 15px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}
.section-title.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}
.section-subtitle {
  color: var(--gray);
  font-size: 0.95rem;
  margin-top: -20px;
  margin-bottom: 30px;
}

/* ===== PRODUCT CARDS ===== */
.card-product {
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.35s ease;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.card-product:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.card-product .img-top {
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card-product:hover .img-top { transform: scale(1.05); }
.card-product .card-body { padding: 18px; }
.card-product .card-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
  transition: var(--transition-fast);
}
.card-product:hover .card-title { color: var(--gold-dark); }
.card-product .text-gold { color: var(--gold); font-weight: 700; font-size: 1.1rem; }
.card-product .category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: var(--black);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}
.card-product .discount-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #dc3545;
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
  animation: pulse 2s infinite;
}
.card-product .old-price {
  text-decoration: line-through;
  color: var(--gray);
  font-size: 0.85rem;
  margin-right: 6px;
}
.card-product .btn-gold {
  background: var(--gold);
  color: var(--black);
  font-weight: 700;
  border-radius: 25px;
  padding: 8px 20px;
  border: none;
  transition: var(--transition-fast);
  cursor: pointer;
}
.card-product .btn-gold:hover {
  background: var(--gold-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}
.card-product .btn-outline-gold {
  border: 2px solid var(--gold);
  color: var(--gold-dark);
  background: transparent;
  border-radius: 25px;
  padding: 6px 16px;
  font-weight: 600;
  transition: var(--transition-fast);
}
.card-product .btn-outline-gold:hover {
  background: var(--gold);
  color: var(--black);
}
.card-product .product-actions {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transition: var(--transition-normal);
}
.card-product:hover .product-actions { opacity: 1; }
.card-product .product-actions button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--black);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  cursor: pointer;
}
.card-product .product-actions button:hover {
  background: var(--gold);
  color: var(--white);
  transform: scale(1.1);
}

/* ===== HOT DEALS / COUNTDOWN ===== */
.hot-deals-section {
  background: linear-gradient(135deg, #1c1c1c 0%, #2a2a2a 100%);
  padding: 60px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hot-deals-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}
.hot-deals-section .section-title { color: var(--gold); }
.hot-deals-section .section-title::after { background: var(--gold); }
.deal-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: var(--transition-normal);
}
.deal-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--gold);
  transform: translateY(-5px);
}
.deal-card .deal-discount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.deal-card .deal-label { font-size: 0.9rem; color: rgba(255,255,255,0.7); margin-top: 8px; }
.deal-card .deal-product-img {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  margin: 20px 0;
  transition: var(--transition-normal);
}
.deal-card:hover .deal-product-img { transform: scale(1.05); }

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}
.countdown-timer .time-block {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  min-width: 70px;
  text-align: center;
}
.countdown-timer .time-block .number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
  display: block;
  line-height: 1;
}
.countdown-timer .time-block .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
  display: block;
}

/* ===== ADVERT BANNERS ===== */
.advert-banner {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 30px;
  cursor: pointer;
}
.advert-banner img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.advert-banner:hover img { transform: scale(1.05); }
.advert-banner .advert-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
}
.advert-banner .advert-overlay h4 {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.3rem;
}
.advert-banner .advert-overlay p {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.advert-banner .advert-overlay .btn {
  align-self: flex-start;
}

/* ===== PAYMENT OPTIONS ===== */
.payment-options {
  background: var(--light-gray);
  padding: 40px 0;
  border-top: 1px solid rgba(0,0,0,0.05);
}
.payment-options h5 {
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--black);
}
.payment-options .payment-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 40px;
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin: 5px;
  font-size: 1.5rem;
  color: var(--gray);
  transition: var(--transition-fast);
}
.payment-options .payment-icon:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.payment-options .payment-icon img {
  max-width: 40px;
  max-height: 24px;
}
.payment-options .trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  font-size: 0.85rem;
  margin: 5px 10px;
}
.payment-options .trust-badge i { color: #28a745; }

/* ===== FEATURES STRIP ===== */
.features-strip {
  background: var(--white);
  padding: 30px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.features-strip .feature-item {
  text-align: center;
  padding: 15px;
  transition: var(--transition-normal);
}
.features-strip .feature-item:hover { transform: translateY(-3px); }
.features-strip .feature-item i {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 10px;
}
.features-strip .feature-item h6 {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.features-strip .feature-item p {
  font-size: 0.8rem;
  color: var(--gray);
  margin: 0;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 30px;
}
.site-footer h5 {
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 1.1rem;
}
.site-footer a {
  color: rgba(255,255,255,0.7);
  transition: var(--transition-fast);
  display: inline-block;
  margin-bottom: 8px;
}
.site-footer a:hover { color: var(--gold); transform: translateX(3px); }
.site-footer .social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 5px 10px;
  font-size: 1.1rem;
  transition: var(--transition-fast);
}
.site-footer .social-links a:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-3px);
}
.site-footer .newsletter-form .form-control {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #fff;
  border-radius: 25px;
  padding: 10px 20px;
}
.site-footer .newsletter-form .form-control::placeholder { color: rgba(255,255,255,0.4); }
.site-footer .newsletter-form .btn {
  border-radius: 25px;
  padding: 10px 25px;
}
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  margin-top: 30px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ===== FLOATING CART ===== */
#cart-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 2050;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  background: var(--gold);
  color: var(--black);
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
}
#cart-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.4);
}
#cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--black);
  color: var(--gold);
  border-radius: 50%;
  padding: 3px 7px;
  font-weight: 700;
  font-size: 12px;
  min-width: 22px;
  text-align: center;
}

/* ===== CART SIDEBAR ===== */
.cart-sidebar {
  position: fixed;
  right: 0;
  top: 0;
  width: 380px;
  max-width: 100%;
  height: 100vh;
  background: var(--white);
  transform: translateX(110%);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 2000;
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
  padding: 20px;
  overflow-y: auto;
}
.cart-sidebar.open { transform: translateX(0); }
.cart-sidebar .close-cart {
  position: absolute;
  left: 12px;
  top: 12px;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--gray);
  transition: var(--transition-fast);
}
.cart-sidebar .close-cart:hover { color: #dc3545; transform: rotate(90deg); }
.cart-sidebar .cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  animation: slideInRight 0.3s ease;
}
.cart-sidebar .cart-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.cart-sidebar .cart-item .item-details { flex: 1; }
.cart-sidebar .cart-item .item-details h6 {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.cart-sidebar .cart-item .item-details small { color: var(--gray); }
.cart-sidebar .cart-item .remove-btn {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 5px;
}
.cart-sidebar .cart-item .remove-btn:hover { transform: scale(1.2); }

/* ===== BACK TO TOP ===== */
#backToTop {
  position: fixed;
  right: 22px;
  bottom: 100px;
  z-index: 2040;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--black);
  color: var(--gold);
  border: 2px solid var(--gold);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-md);
}
#backToTop.show { display: flex; }
#backToTop:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-3px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1199px) {
  .hero-carousel .carousel-item { height: 450px; }
  .hero-carousel .carousel-caption h1 { font-size: 2.5rem; }
}
@media (max-width: 991px) {
  .hero-carousel .carousel-item { height: 380px; }
  .hero-carousel .carousel-caption h1 { font-size: 2rem; }
  .hero-carousel .carousel-caption p { font-size: 1rem; }
  .card-product .img-top { height: 250px; }
}
@media (max-width: 767px) {
  .announcement-bar { font-size: 0.75rem; padding: 6px 0; }
  .hero-carousel .carousel-item { height: 300px; }
  .hero-carousel .carousel-caption { text-align: center; left: 5%; right: 5%; }
  .hero-carousel .carousel-caption h1 { font-size: 1.6rem; }
  .hero-carousel .carousel-caption p { font-size: 0.9rem; }
  .section-title { font-size: 1.4rem; }
  .card-product .img-top { height: 200px; }
  .cart-sidebar { width: 100%; }
  .countdown-timer { gap: 8px; }
  .countdown-timer .time-block { min-width: 55px; padding: 8px 12px; }
  .countdown-timer .time-block .number { font-size: 1.3rem; }
  .deal-card .deal-discount { font-size: 2rem; }
  .features-strip .feature-item { padding: 10px; }
  .advert-banner img { height: 150px; }
  .advert-banner .advert-overlay { padding: 20px; }
  .advert-banner .advert-overlay h4 { font-size: 1.1rem; }
  #cart-toggle { width: 54px; height: 54px; right: 15px; bottom: 15px; }
}
@media (max-width: 575px) {
  .hero-carousel .carousel-item { height: 250px; }
  .hero-carousel .carousel-caption h1 { font-size: 1.3rem; }
  .hero-carousel .carousel-caption p { font-size: 0.8rem; }
  .hero-carousel .carousel-caption .btn { font-size: 0.85rem; padding: 8px 20px; }
  .card-product .img-top { height: 180px; }
  .navbar-brand { font-size: 1.2rem; }
  .navbar-brand img { height: 34px; }
}

/* ===== UTILITY ===== */
.text-gold { color: var(--gold); }
.bg-gold { background: var(--gold); }
.btn-gold {
  background: var(--gold);
  color: var(--black);
  font-weight: 700;
  border-radius: 25px;
  padding: 10px 28px;
  border: none;
  transition: var(--transition-fast);
  cursor: pointer;
}
.btn-gold:hover {
  background: var(--gold-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}
.btn-outline-gold {
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
  border-radius: 25px;
  padding: 8px 24px;
  font-weight: 600;
  transition: var(--transition-fast);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--black);
}
.shadow-hover { transition: var(--transition-normal); }
.shadow-hover:hover { box-shadow: var(--shadow-md); }