@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Outfit:wght@300;400;500;600;800&display=swap');

:root {
  --bg-color: #FDFBF7;
  --surface-color: #FFFFFF;
  --surface-border: #E8E2D2;
  --primary-color: #B87333;
  --primary-hover: #A06026;
  --text-main: #4A3E38;
  --text-dark: #2C1E16;
  --error: #C0392B;
  --success: #27AE60;
  
  --font-heading: 'Cinzel', serif;
  --font-body: 'Outfit', sans-serif;
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --radius: 8px;
  --shadow: 0 8px 30px rgba(44, 30, 22, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}


.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  padding: 100px 0;
}


.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--surface-border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: var(--text-main);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.cart-icon {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.cart-icon svg {
  stroke: var(--text-dark);
  transition: var(--transition);
}

.cart-icon:hover svg {
  stroke: var(--primary-color);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -15px;
  background: var(--primary-color);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(184, 115, 51, 0.4);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-dark);
  font-size: 1.5rem;
  cursor: pointer;
}


.cart-sidebar-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(44, 30, 22, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-sidebar {
  position: fixed;
  top: 0; right: -450px;
  width: 400px; max-width: 90%;
  height: 100vh;
  background: var(--bg-color);
  z-index: 2001;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.86, 0, 0.07, 1);
}

.cart-sidebar.active {
  right: 0;
}

.cart-header {
  padding: 25px;
  border-bottom: 1px solid var(--surface-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-closeBtn {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-dark);
}

.cart-items-container {
  flex: 1;
  overflow-y: auto;
  padding: 25px;
}

.cart-footer {
  padding: 25px;
  background: var(--surface-color);
  border-top: 1px solid var(--surface-border);
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--surface-border);
}

.cart-item-details { flex: 1; margin-right: 15px; }
.cart-item-title { font-weight: 600; color: var(--text-dark); font-size: 1.05rem; }
.cart-item-price { color: var(--primary-color); font-weight: 600; }
.cart-remove { color: var(--error); cursor: pointer; font-size: 0.85rem; text-decoration: underline; background:none; border:none; }


.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to right, rgba(44, 30, 22, 0.9) 10%, rgba(44, 30, 22, 0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--text-dark);
  animation: fadeUp 1s ease forwards;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  animation: fadeUp 1s ease 0.2s forwards;
  opacity: 0;
  color: var(--text-main);
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--text-dark);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 700;
}

.btn:hover {
  background: var(--text-dark);
  color: #fff;
}

.btn-solid {
  background: var(--primary-color);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(184, 115, 51, 0.3);
}

.btn-solid:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(184, 115, 51, 0.4);
}


.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
}

.product-card {
  background: var(--surface-color);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--surface-border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

.product-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 20px;
}

.product-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.product-price {
  color: var(--primary-color);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 25px;
}

.product-card .btn {
  margin-top: auto;
  width: 100%;
}


.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.feature-card {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  padding: 40px;
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  stroke: var(--primary-color);
  fill: none;
  stroke-width: 2;
}


.faq-item {
  border-bottom: 1px solid var(--surface-border);
  padding: 20px 0;
}
.faq-question {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1.1rem;
}
.faq-answer {
  display: none;
  padding-top: 15px;
  color: var(--text-main);
  line-height: 1.6;
}


.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(44, 30, 22, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--bg-color);
  padding: 40px;
  border-radius: var(--radius);
  max-width: 450px;
  width: 90%;
  text-align: center;
  transform: translateY(20px) scale(0.95);
  transition: var(--transition);
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 15px; right: 20px;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-dark);
  font-size: 2.5rem;
  line-height: 1;
}


.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--surface-border);
  color: var(--text-dark);
  border-radius: var(--radius);
  font-family: var(--font-body);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}


.slot-machine {
  background: var(--text-dark);
  padding: 30px;
  border-radius: 12px;
  border: 4px solid var(--primary-color);
  box-shadow: inset 0 10px 30px rgba(0,0,0,0.8), 0 10px 40px rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin: 40px auto;
  max-width: 400px;
}
.slot-reel {
  width: 90px;
  height: 120px;
  background: var(--surface-color);
  border: 2px solid var(--primary-hover);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3.5rem;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 5px 15px rgba(0,0,0,0.2);
}
.slot-symbol {
  transform: translateY(0);
}
.slot-symbol.rolling {
  animation: rollReel 0.1s linear infinite;
}
@keyframes rollReel {
  0% { transform: translateY(-100%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}
.slot-lever-container {
  text-align: center;
  margin-top: 20px;
}
.slot-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 15px 40px;
  font-size: 1.5rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(184, 115, 51, 0.5);
  transition: var(--transition);
}
.slot-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(184, 115, 51, 0.6);
}
.slot-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 10px rgba(184, 115, 51, 0.4);
}


.chatbot {
  background: #fff;
  border: 1px solid var(--surface-border);
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
.chat-header {
  background: var(--bg-color);
  border-bottom: 1px solid var(--surface-border);
}
.msg-bot { background: var(--bg-color); color: var(--text-dark); border: 1px solid var(--surface-border); }


.footer {
  background: var(--text-dark);
  color: #fff;
  padding: 80px 0 30px;
}
.footer-col h4 { color: var(--primary-color); }
.footer-col ul li a { color: #d1d5db; }
.footer-col ul li a:hover { color: #fff; }
.social-links a { border-color: rgba(255,255,255,0.2); color: #fff; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991px) {
  .header .nav-links {
    position: fixed;
    top: 75px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 75px);
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: left 0.4s ease;
  }
  .header .nav-links.active { left: 0; }
  .nav-links a { font-size: 1.5rem; text-transform: none; }
  .mobile-menu-btn { display: block; order: 3; margin-right: 0; margin-left: 20px; }
  .cart-icon { order: 2; margin-left: auto; }
  .logo { order: 1; }
  .hero h1 { font-size: 3rem; }
  .features { grid-template-columns: 1fr; }
}


.bot-trigger {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 65px;
  height: 65px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.bot-trigger svg {
  width: 32px;
  height: 32px;
  stroke: #fff;
  fill: none;
}

.chatbot {
  position: fixed;
  bottom: 110px;
  right: 30px;
  width: 360px;
  height: 520px;
  background: var(--bg-color);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  z-index: 999;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.95);
  transition: var(--transition);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  overflow: hidden;
}

.chatbot.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

.chat-header {
  padding: 20px;
  background: #fff;
  border-bottom: 1px solid var(--surface-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-logs {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  padding: 12px 16px;
  border-radius: 12px;
  max-width: 85%;
  font-size: 0.95rem;
  line-height: 1.5;
}

.msg-bot {
  background: #fff;
  align-self: flex-start;
  border: 1px solid var(--surface-border);
  border-top-left-radius: 4px;
}

.msg-user {
  background: var(--primary-color);
  color: #fff;
  align-self: flex-end;
  border-top-right-radius: 4px;
  font-weight: 600;
}

.chat-input {
  display: flex;
  padding: 15px;
  background: #fff;
  border-top: 1px solid var(--surface-border);
}

.chat-input input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-dark);
  outline: none;
  font-size: 1.05rem;
}

.chat-input button {
  background: transparent;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  font-weight: bold;
}


.map-container {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  padding-top: 40px;
  height: 300px;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}


.new-arrival-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: 50px;
  align-items: center;
  background: var(--surface-color);
  padding: 50px;
  border-radius: var(--radius);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  background: var(--surface-color);
  padding: 50px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--surface-border);
}

.cart-box {
  background: var(--surface-color);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
}

.cart-page-item {
  display: flex;
  justify-content: space-between;
  padding: 25px 0;
  align-items: center;
}
.cart-item-info {
  display: flex;
  align-items: center;
  gap: 20px;
}
.cart-item-price-wrapper {
  text-align: right;
}


@media (max-width: 992px) {
  .hero h1 { font-size: 3.5rem; }
  .features { grid-template-columns: repeat(2, 1fr) !important; }
  .product-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 768px) {
  .product-grid { grid-template-columns: 1fr !important; }
  .features { grid-template-columns: 1fr !important; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; padding: 30px; }
  .new-arrival-card { grid-template-columns: 1fr; gap: 40px; padding: 30px; }
  

  body > section.container > div[style*="display: grid"] { 
    grid-template-columns: 1fr !important; 
  }
  
  .chatbot {
    width: 90%;
    right: 5%;
    bottom: 100px;
  }
  
  .cart-sidebar {
    width: 100%;
    right: -100%;
  }


  section.container > div > div > img {
     margin-top: 30px;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.2rem !important; }
  h1 { font-size: 2.2rem !important; }
  h2 { font-size: 1.8rem !important; }
  section { padding: 60px 0; }
  .slot-machine { padding: 15px; gap: 10px; flex-wrap: wrap; }
  .slot-reel { width: 70px; height: 90px; font-size: 2.5rem; }
  .container { width: 92%; }
  .cart-page-grid { gap: 30px; }
  
  .contact-grid { padding: 20px; gap: 30px; }
  .new-arrival-card { padding: 20px; gap: 30px; }
  .cart-box { padding: 20px; }
  
  .cart-page-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .cart-item-price-wrapper {
    text-align: left;
    width: 100%;
  }
}
@keyframes slot-spin-anim {
  0% { transform: translateY(0); filter: blur(0px); }
  50% { transform: translateY(80px); filter: blur(4px); opacity: 0; }
  51% { transform: translateY(-80px); filter: blur(4px); opacity: 0; }
  100% { transform: translateY(0); filter: blur(0px); opacity: 1; }
}

.rolling .slot-symbol {
    animation: slot-spin-anim 0.15s linear infinite;
}

/* Wheel of Fortune */
.wheel-container {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    border-radius: 50%;
    border: 6px solid var(--text-dark);
    box-shadow: 0 0 0 6px var(--primary-color), 0 15px 35px rgba(0,0,0,0.4), inset 0 0 20px rgba(0,0,0,0.8);
    overflow: hidden;
    background: var(--text-dark);
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        from -22.5deg,
        #C0392B 0deg 45deg,
        #2C1E16 45deg 90deg,
        #B87333 90deg 135deg,
        #2C1E16 135deg 180deg,
        #C0392B 180deg 225deg,
        #2C1E16 225deg 270deg,
        #B87333 270deg 315deg,
        #2C1E16 315deg 360deg
    );
    transition: transform 5s cubic-bezier(0.2, 0.9, 0.1, 1);
    position: relative;
}

.wheel::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18%;
    height: 18%;
    background: radial-gradient(circle, #fff 0%, #e0e0e0 40%, #999 100%);
    border: 4px solid var(--text-dark);
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.6);
    z-index: 5;
}

.wheel-labels {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 50%;
}

.wheel-label {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 24px;
    margin-top: -12px;
    transform-origin: 0 50%;
    text-align: right;
    padding-right: 15%;
    color: #fff;
    font-weight: 800;
    font-size: clamp(0.9rem, 5vw, 1.3rem);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.wheel-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 45px;
    background: linear-gradient(to bottom, #FFD700, #B87333);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    z-index: 10;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.6));
}

@keyframes pulse-btn {
    0% { box-shadow: 0 0 0 0 rgba(184, 115, 51, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(184, 115, 51, 0); }
    100% { box-shadow: 0 0 0 0 rgba(184, 115, 51, 0); }
}

.wheel-spin-active {
    animation: pulse-btn 2s infinite;
}

@keyframes win-pop {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.win-anim {
    animation: win-pop 0.5s cubic-bezier(0.17, 0.89, 0.32, 1.28) forwards;
}
