/* RESET */
*{ box-sizing:border-box; margin:0; padding:0; }
body{ font-family:Arial; background:white; overflow-x:hidden; }

/* HEADER */
header{
  display:flex;
  justify-content:center;
  align-items:center;
  padding:12px 20px;
  background:white;
  position:relative;
  z-index:10;
}

.logo{
  font-size:38px;
  font-weight:bold;
  text-decoration:none;
  color:black;
  transition: all 0.3s ease;
  position:relative;
  margin:0 auto;
}
.logo:hover{
  transform:scale(1.05);
  color:#ff7a00;
}
.lamp{ color:#ffc400; }
.logo:hover .lamp{
  color:#ff4500;
}

/* PRODUCTS LINK - Left side */
.products-link{
  font-size:20px;
  font-weight:bold;
  text-decoration:none;
  color:black;
  position:absolute;
  left:20px;
  top:50%;
  transform:translateY(-50%);
  padding:5px 0;
  transition:color 0.3s ease;
}
.products-link::before{
  content:'';
  position:absolute;
  bottom:0;
  left:0;
  width:0;
  height:2px;
  background:linear-gradient(90deg,#ff7a00,#ff4500);
  transition:width 0.4s ease;
}
.products-link:hover::before{
  width:100%;
}
.products-link:hover{
  color:#ff7a00;
}
.products-link.active{
  color:black;
}
.products-link.active:hover{
  color:#ff7a00;
}

/* GUIDE LINK - Positioned between Products and ALORA */
.guide-link{
  font-size:20px;
  font-weight:bold;
  text-decoration:none;
  color:black;
  position:absolute;
  left:200px;
  top:50%;
  transform:translateY(-50%);
  padding:5px 0;
  transition:color 0.3s ease;
}
.guide-link::before{
  content:'';
  position:absolute;
  bottom:0;
  left:0;
  width:0;
  height:2px;
  background:linear-gradient(90deg,#ff7a00,#ff4500);
  transition:width 0.4s ease;
}
.guide-link:hover::before{
  width:100%;
}
.guide-link:hover{
  color:#ff7a00;
}
.guide-link.active{
  color:#ff7a00;
}
.guide-link.active::before{
  width:100%;
}

/* CART ICON - Right side */
.cart-icon{
  position:static !important;
  transform:none !important;
  font-size:28px;
  text-decoration:none;
  color:black;
  display:flex;
  align-items:center;
  gap:8px;
}
.cart-icon #cart-count{
  background:red;
  color:white;
  font-size:16px;
  padding:2px 6px;
  border-radius:50%;
  vertical-align:top;
  margin-left:4px;
}

/* CART MESSAGE */
.cart-message{
  background: #4CAF50;
  color: white;
  padding:5px 10px;
  border-radius:20px;
  font-size:14px;
  animation: fadeInOut 4s ease-in-out;
  white-space:nowrap;
}
@keyframes fadeInOut {
  0% { opacity:0; transform:translateX(20px); }
  20% { opacity:1; transform:translateX(0); }
  80% { opacity:1; transform:translateX(0); }
  100% { opacity:0; transform:translateX(20px); }
}

/* SPARKS CONTAINER */
.spark-container{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  pointer-events:none;
  z-index:0;
}

/* Spark style */
.spark{
  position:absolute;
  width:2px;
  height:6px;
  border-radius:50%;
  background: linear-gradient(180deg,#fff200,#ff7a00,#ff0000);
  opacity:0.8;
}

/* HERO SECTION - DEFAULT BACKGROUND (will be overridden per page) */
.hero{
  height:600px;
  display:flex; align-items:center; justify-content:center; text-align:center;
  position:relative; z-index:1;
  background-size:cover; background-position:center; background-repeat:no-repeat;
  flex-direction: column;
}

/* PAGE-SPECIFIC HERO BACKGROUNDS */
body.home-page .hero {
  background-image: linear-gradient(to bottom, white 0%, rgba(255,255,255,0) 20%), linear-gradient(to top, white 0%, rgba(255,255,255,0) 20%), url("im1.jpg");
  background-size: cover;
  background-position: center;
}

body.cart-page .hero {
  background-image: linear-gradient(to bottom, white 0%, rgba(255,255,255,0) 20%), linear-gradient(to top, white 0%, rgba(255,255,255,0) 20%), url("im3.jpg");
  background-size: cover;
  background-position: center;
}

body.products-page .hero {
  background-image: linear-gradient(to bottom, white 0%, rgba(255,255,255,0) 20%), linear-gradient(to top, white 0%, rgba(255,255,255,0) 20%), url("im2.jpg");
  background-size: cover;
  background-position: center;
}

body.guide-page .hero {
  background-image: linear-gradient(to bottom, white 0%, rgba(255,255,255,0) 20%), linear-gradient(to top, white 0%, rgba(255,255,255,0) 20%), url("im4.jpg");
  background-size: cover;
  background-position: center;
}

.main-title{
  font-size:60px; margin-top:-80px;
  background:linear-gradient(90deg,#ff7a00,#ffd000,#fff3a0,#ff9b00,#ff7a00);
  background-size:300%;
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  animation:fireFlow 6s linear infinite,flicker 3s infinite;
}
.hero-subtitle{
  font-size:24px;
  margin-top:20px;
  color:#333333;
  max-width:600px;
  padding:0 20px;
  font-weight:500;
}
@keyframes fireFlow{0%{background-position:0%}100%{background-position:300%}}
@keyframes flicker{0%,10%,100%{opacity:1}5%,20%{opacity:0.95}}

/* IMPORTANT NOTE */
.important-note{
  background:#fff3cd;
  border-left:6px solid #ff7a00;
  padding:20px 30px;
  margin:20px 10% 0;
  border-radius:10px;
  font-size:18px;
  color:#856404;
  text-align:center;
  position:relative;
  z-index:2;
}

/* FEATURES */
.feature{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:80px;
  padding:80px 10%;
  flex-wrap:wrap;
  position:relative;
  z-index:1;
}

/* SLIDER */
.slider{
  position:relative;
  width:520px;
  height:320px;
  overflow:hidden;
  border-radius:15px;
  box-shadow:0 15px 30px rgba(0,0,0,0.2);
}
.slide{
  position:absolute;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transition:opacity .6s;
  cursor:pointer;
}
.slide.active{ opacity:1; }
.arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:rgba(0,0,0,0.6);
  border:none;
  color:white;
  font-size:20px;
  padding:10px;
  cursor:pointer;
  transition:0.3s;
  z-index:20;
}
.arrow:hover{ background:rgba(0,0,0,0.9); transform:translateY(-50%) scale(1.2);}
.left{left:10px;} .right{right:10px;}

/* TEXT */
.text{
  max-width:520px;
  text-align:left;
}
.text h2{ font-size:38px; margin-bottom:20px; }
.text p{ font-size:18px; line-height:1.6; margin-bottom:15px; }
.text .tip{
  background:#f9f9f9;
  padding:12px 18px;
  border-radius:8px;
  font-size:16px;
  color:#ff7a00;
  border-left:4px solid #ff7a00;
}
.text .highlight{
  color:#ff7a00;
  font-weight:bold;
}

/* ORDER BUTTON */
.order-btn{
  display:inline-block;
  margin-top:20px;
  padding:14px 30px;
  border-radius:10px;
  color:white;
  text-decoration:none;
  font-weight:bold;
  background:linear-gradient(45deg,#ff0077,#ffcc00,#00e5ff,#7b00ff);
  background-size:300%;
  animation:rgbGlow 6s linear infinite;
  transition:0.3s;
  border:none;
  cursor:pointer;
  font-size:16px;
}
.order-btn:hover{ transform:scale(1.1); box-shadow:0 0 20px rgba(255,255,255,0.6); }
@keyframes rgbGlow{0%{background-position:0%}100%{background-position:300%}}

/* SCROLL REVEAL */
.reveal, .first-box{ opacity:0; transform:translateY(120px) scale(0.9); transition:1s; }
.reveal.active, .first-box.active{ opacity:1; transform:translateY(0) scale(1); }

/* DOWNLOAD PROMPT */
.download-prompt{
  text-align:center;
  padding:40px 0 20px;
  background:white;
  position:relative;
  z-index:2;
}
.arrow-down{
  font-size:32px;
  color:#ff7a00;
  animation:bounce 2s infinite;
}
@keyframes bounce{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(10px);}
}
.scroll-text{
  font-size:18px;
  color:#666;
  margin:10px 0;
  font-style:italic;
}

/* DOWNLOAD SECTION */
.download-section{
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
  padding:80px 10%;
  text-align:center;
  position:relative;
  z-index:2;
}
.download-title{
  font-size:48px;
  color:#ff7a00;
  margin-bottom:20px;
}
.download-description{
  font-size:20px;
  color:#555;
  margin-bottom:40px;
  max-width:800px;
  margin-left:auto;
  margin-right:auto;
}
.app-links-container{
  display:flex;
  gap:40px;
  justify-content:center;
  flex-wrap:wrap;
  margin:40px 0;
}
.app-link-box{
  background:white;
  padding:30px 30px;
  border-radius:15px;
  box-shadow:0 10px 30px rgba(0,0,0,0.1);
  flex:1;
  min-width:280px;
  max-width:350px;
  transition:transform 0.3s;
}
.app-link-box:hover{
  transform:translateY(-10px);
  box-shadow:0 20px 40px rgba(0,0,0,0.15);
}
.app-link-box h3{
  font-size:24px;
  margin-bottom:20px;
  color:#333;
}
.app-link{
  font-size:16px;
  color:#666;
  margin:20px 0;
  word-break:break-all;
}
.link-text{
  color:#ff7a00;
  font-weight:bold;
  text-decoration:none;
  display:inline-block;
  padding:5px 10px;
  background:#fff3e0;
  border-radius:5px;
  margin-top:5px;
}
.link-text:hover{
  background:#ffe0b3;
}
.app-note{
  font-size:14px;
  color:#999;
  margin-top:10px;
  font-style:italic;
}
.contact-reminder{
  margin-top:50px;
  padding:30px;
  background:white;
  border-radius:15px;
  border:2px solid #ff7a00;
}
.contact-reminder h3{
  font-size:28px;
  color:#ff7a00;
  margin-bottom:20px;
}
.contact-reminder p{
  font-size:18px;
  margin:15px 0;
  color:#555;
}
.contact-info{
  background:#f9f9f9;
  padding:20px;
  border-radius:10px;
  margin:20px 0;
  font-size:18px;
}
.contact-info p{
  margin:10px 0;
  color:#333;
}
.friendly-note{
  font-size:20px;
  color:#ff7a00;
  font-weight:bold;
  margin-top:20px;
}

/* FOOTER CONTACT */
.footer-contact {
  background: #e4e4e4;
  padding: 40px 20px;
  font-size: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}
.footer-title {
  font-size:28px;
  font-weight:bold;
  margin-bottom:20px;
  text-align:center;
  width:100%;
}
.contact-item {
  display: flex;
  align-items:center;
  gap:10px;
  justify-content:center;
  width:100%;
  max-width:300px;
  margin:0 auto;
}
.footer-icon {
  width:24px;
  height:24px;
  flex-shrink:0;
}
.contact-item span {
  font-size:16px;
  line-height:1.4;
  text-align:left;
  flex:1;
}

/* FOOTER BOTTOM */
.footer-bottom {
  background:black;
  color:white;
  text-align:center;
  padding:15px;
  font-size:16px;
}

/* 3D LAMP VIEWER */
.lamp3d-box{
  width:520px;
  height:320px;
  border-radius:15px;
  overflow:hidden;
  background:white;
  box-shadow:0 15px 30px rgba(0,0,0,0.2);
}
model-viewer{
  width:100%;
  height:100%;
  background: radial-gradient(circle,#ffffff,#eaeaea);
}
.secondBox{ object-fit:contain; background:transparent; }

/* PRODUCT GRID (Products Page) */
.product-grid{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap:20px;
  padding:40px 10%;
}
.product-box {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  background: white;
  padding: 15px 10px; /* Add padding around content */
  display: flex;
  flex-direction: column;
  align-items: center;
}
.product-box img {
  width: 100%;
  max-width: 180px; /* Limit max width */
  height: auto; /* Auto height to maintain aspect ratio */
  object-fit: contain; /* Show full image without cropping */
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}
.product-box span {
  display: block;
  margin-top: 12px;
  padding: 0 10px;
  font-size: 16px;
  font-weight: bold;
}
.product-box small {
  display: block;
  margin-top: 5px;
  margin-bottom: 0;
  padding: 0 10px;
  color: gray;
}
.product-box:hover{
  transform:scale(1.05);
  box-shadow:0 0 30px rgba(255,0,128,0.6);
}
.product-box.selected{
  border:2px solid #ff0077;
}

/* ===== PHONE FRAME FOR SECOND BOX ===== */
.phone-frame {
  position: relative;
  width: 280px;
  height: 500px;
  background: #111;
  border-radius: 40px;
  padding: 10px;
  box-shadow:
    0 0 0 3px #333,
    0 0 0 6px #222,
    0 20px 40px rgba(0,0,0,0.4);
  margin: 0;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 30px;
  background: #111;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  z-index: 10;
}

.phone-screen .slider {
  width: 100%;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-screen .slide {
  object-fit: contain !important;
  background: #000;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}

.phone-screen .arrow {
  background: rgba(0,0,0,0.4);
  font-size: 16px;
  padding: 8px;
  z-index: 30;
  opacity:1 !important;
  display:block !important;
}

.phone-screen .arrow:hover {
  background: rgba(0,0,0,0.8);
}

.feature.phone-feature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
}

.phone-feature .text {
  max-width: 520px;
  text-align: left;
  margin: 0;
}

.first-box + .feature.phone-feature {
  padding-top: 80px;
}

/* ===== MODAL STYLES ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  padding: 25px;
  border-radius: 15px;
  width: 90%;
  max-width: 450px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  animation: modalSlideIn 0.3s ease;
}

.modal-content.large {
  max-width: 1100px;
  width: 95%;
  padding: 30px;
}

.modal-content.custom-name-modal {
  max-width: 900px;
  padding: 25px;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
  font-size: 26px;
}

.modal h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #555;
  text-align: center;
}

/* ===== SECTION TITLE WITH UNDERLINE ===== */
.section-title {
  text-align: center;
  margin: 15px 0 12px 0;
}

.section-title span {
  font-size: 20px;
  font-weight: bold;
  color: #ff7a00;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  padding-bottom: 5px;
}

.section-title .underline {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, #ff7a00, #ff4500);
  margin: 0 auto;
  border-radius: 3px;
}

/* ===== PREVIEW SECTION WITH GREY BACKGROUND ===== */
.preview-section {
  background: #f5f5f5;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.preview-row {
  display: flex;
  gap: 20px;
  margin: 0;
  align-items: center;
  justify-content: center;
}

.preview-box {
  width: 160px;
  height: 160px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 10px rgba(0,0,0,0.15);
  border: 2px solid #ff7a00;
  flex-shrink: 0;
  background: white;
}

.preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.color-boxes-vertical {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 70px;
}

.base-preview-row {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.texture-boxes-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 90px;
}

.texture-box {
  padding: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
  text-align: center;
  font-weight: bold;
  font-size: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.texture-box.selected {
  background: #ff7a00;
  color: white;
  border-color: #ff4500;
  transform: scale(1.03);
  box-shadow: 0 3px 8px rgba(255,122,0,0.3);
}

.color-box {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s;
  font-weight: bold;
  font-size: 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.color-box.white {
  background: white;
  color: #333;
  border: 2px solid #ddd;
}

.color-box.blue {
  background: #3498db;
  color: white;
}

.color-box.black {
  background: #333;
  color: white;
}

.color-box.selected {
  border: 2px solid #ff7a00;
  transform: scale(1.05);
  box-shadow: 0 3px 8px rgba(255,122,0,0.3);
}

/* ===== CUSTOM NAME SECTION ===== */
.custom-name-section {
  background: #f5f5f5;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 15px;
  border: 2px solid #ff7a00;
}

.custom-name-section h3 {
  color: #ff7a00;
  margin-bottom: 8px;
  text-align: center;
  font-size: 18px;
}

.custom-name-section input {
  width: 100%;
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.custom-name-section input:focus {
  outline: none;
  border-color: #ff7a00;
}

.error-message {
  color: red;
  font-size: 12px;
  margin: 5px 0 0 0;
  display: none;
  text-align: center;
}

.product-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  margin: 15px 0 15px;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  border-left: 3px solid #ff7a00;
  border-right: 3px solid #ff7a00;
}

.product-info .price {
  color: #ff7a00;
  font-size: 20px;
}

.modal-buttons {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.modal-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.cancel-btn {
  background: #ddd;
  color: #333;
}

.cancel-btn:hover {
  background: #ccc;
  transform: scale(1.02);
}

.order-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.custom-name-btn {
  width: 100%;
  margin: 20px 0;
  padding: 15px;
  font-size: 18px;
}

/* ===== CART PAGE STYLES ===== */
#cart-items {
  min-height: 200px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 40px 10%;
  background: white;
  position: relative;
  z-index: 5;
}

.empty-cart-message {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px;
  font-size: 20px;
  color: #666;
  background: #f9f9f9;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cart-item {
  display: flex;
  flex-direction: column;
  height: auto;
  padding: 15px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  z-index: 10;
}

.cart-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.cart-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
  border: 2px solid #f0f0f0;
  position: relative;
  z-index: 15;
}

.cart-item-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 5px;
  position: relative;
  z-index: 15;
}

.cart-item-name {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.cart-item-price {
  font-size: 20px;
  font-weight: bold;
  color: #ff7a00;
  margin-bottom: 10px;
}

.item-detail {
  font-size: 14px;
  color: #555;
  display: flex;
  gap: 5px;
  padding: 2px 0;
}

.detail-label {
  font-weight: bold;
  color: #777;
  min-width: 95px;
}

.item-detail.custom-name {
  color: #ff7a00;
}

/* ===== CART TOTAL SECTION ===== */
.cart-total {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  padding: 30px;
  margin: 20px 10% 40px;
  text-align: center;
  position: relative;
  z-index: 5;
}

.cart-total h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}

/* ===== CHECKOUT FORM STYLES ===== */
.checkout-form {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  padding: 30px;
  margin: 20px 10% 40px;
  position: relative;
  z-index: 5;
}

.checkout-form h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: bold;
  margin-bottom: 5px;
  color: #555;
}

.form-group input {
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: #ff7a00;
}

/* ===== SHIPPING SELECTION ===== */
.shipping-option, .payment-option {
  padding: 15px;
  background: #f9f9f9;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 5px;
}

.shipping-option.selected, .payment-option.selected {
  border-color: #ff7a00;
  background: #fff3e0;
}

.shipping-option input, .payment-option input {
  margin-right: 10px;
  cursor: pointer;
}

/* ===== TOTAL BREAKDOWN ===== */
.total-breakdown {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
  font-size: 18px;
}

.breakdown-row.total {
  border-top: 2px solid #ddd;
  padding-top: 10px;
  margin-top: 10px;
  font-size: 20px;
}

/* ===== SHIPPING INDICATOR ===== */
.shipping-info {
  font-size: 14px;
  color: #666;
  margin-top: 5px;
  padding: 5px 10px;
  background: #f5f5f5;
  border-radius: 5px;
}

.shipping-info.free {
  color: #4CAF50;
  font-weight: bold;
}

.shipping-info.standard {
  color: #ff7a00;
  font-weight: bold;
}

/* ===== REMOVE BUTTON ===== */
.remove-btn {
  margin-top: 15px;
  padding: 10px 20px;
  background: #ff4444;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: bold;
  width: 100%;
  position: relative;
  z-index: 15;
}

.remove-btn:hover {
  background: #ff0000;
  transform: scale(1.02);
}

/* ===== SUCCESS MESSAGE ===== */
.success-message {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  margin: 40px 10%;
  animation: slideDown 0.5s ease;
  position: relative;
  z-index: 5;
  box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
}

.success-message h3 {
  font-size: 28px;
  margin-bottom: 20px;
}

.success-message p {
  font-size: 18px;
  margin: 10px 0;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 900px) {
  .preview-row, .base-preview-row {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .color-boxes-vertical {
    flex-direction: row;
    justify-content: center;
  }

  .texture-boxes-left {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .preview-box {
    width: 150px;
    height: 150px;
  }

  .color-box {
    width: 60px;
    height: 60px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  #cart-items {
    grid-template-columns: 1fr;
    padding: 20px 5%;
  }

  .modal-buttons {
    flex-direction: column;
  }

  .product-info {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .preview-box {
    width: 130px;
    height: 130px;
  }

  .color-box {
    width: 50px;
    height: 50px;
    font-size: 11px;
  }

  .modal h2 {
    font-size: 22px;
  }

  .section-title span {
    font-size: 18px;
  }

  .cart-item {
    padding: 12px;
  }

  .cart-item img {
    height: 160px;
  }

  .detail-label {
    min-width: 85px;
  }

  .guide-link{
    left:85px;
    font-size:18px;
  }

  .products-link{
    left:15px;
    font-size:18px;
  }
}

/* ===== LANGUAGE SELECTOR STYLES ===== */

/* Flag images */
.flag-img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
}

.flag-img-small {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  object-fit: cover;
}

/* Language Popup Modal */
.language-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.language-modal-content {
  background: white;
  padding: 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  animation: slideUp 0.5s ease;
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.language-modal-content h2 {
  color: #ff7a00;
  font-size: 28px;
  margin-bottom: 10px;
}

.language-modal-content p {
  color: #666;
  margin-bottom: 30px;
  font-size: 16px;
}

.language-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.lang-btn {
  padding: 15px 20px;
  border: 2px solid #ff7a00;
  border-radius: 10px;
  background: white;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.lang-btn .flag {
  display: flex;
  align-items: center;
}

.lang-btn:hover {
  background: #ff7a00;
  color: white;
  transform: scale(1.05);
}

/* Header right section - FORCED LTR (keeps same position in all languages) */
.header-right {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 15px;
  flex-direction: row;
  z-index: 20;
  direction: ltr !important;
}

/* Language Dropdown */
.language-dropdown {
  position: relative;
  display: inline-block;
}

.lang-dropdown-btn {
  background: white;
  border: 2px solid #ff7a00;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.lang-dropdown-btn:hover {
  background: #ff7a00;
  color: white;
}

.lang-dropdown-btn .flag-img-small {
  width: 20px;
  height: 20px;
}

.dropdown-arrow {
  font-size: 12px;
  margin-left: 5px;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 45px;
  background: white;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  border-radius: 8px;
  z-index: 1000;
  overflow: hidden;
  animation: slideDown 0.3s ease;
}

.dropdown-content.show {
  display: block;
}

.dropdown-content a {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.3s ease;
}

.dropdown-content a:hover {
  background: #f5f5f5;
}

.dropdown-content .flag {
  display: flex;
  align-items: center;
}

/* Cart icon in header-right - always on far right */
.header-right .cart-icon {
  position: static !important;
  transform: none !important;
  font-size: 28px;
  order: 2;
}

/* ===== SINGLE IMAGE STYLES FOR GUIDE PAGE ===== */
.single-image-container {
  width: 520px;
  height: 320px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.single-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Cart items always LTR */
.cart-item,
.cart-item-details,
.item-detail,
#cart-items .cart-item,
#cart-items .cart-item-details,
#cart-items .item-detail {
  direction: ltr !important;
  text-align: left !important;
}

.detail-label {
  text-align: left !important;
}

/* ===== FIX PHONE NUMBER IN ARABIC - KEEP NUMBERS LTR ===== */
.contact-item span {
  direction: ltr !important;
  unicode-bidi: embed;
  display: inline-block;
}

/* ===== WELCOME MESSAGE STYLES ===== */
#welcomeMsg {
  background: #4CAF50;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  white-space: nowrap;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
  margin-right: 10px;
}

/* ===== FIX ARROWS - KEEP SAME POSITION AND DIRECTION IN ALL LANGUAGES ===== */
/* Force arrows to stay on same side AND same direction */
.slider .arrow.left,
.slider .arrow.right,
.phone-screen .slider .arrow.left,
.phone-screen .slider .arrow.right {
  direction: ltr !important;
  unicode-bidi: embed !important;
}

/* Position arrows on correct sides */
.slider .arrow.left,
.phone-screen .slider .arrow.left {
  left: 10px !important;
  right: auto !important;
}

.slider .arrow.right,
.phone-screen .slider .arrow.right {
  right: 10px !important;
  left: auto !important;
}

/* Force arrow symbols to stay as original (not flipped) */
.slider .arrow.left::before,
.phone-screen .slider .arrow.left::before {
  content: "❮" !important;
}

.slider .arrow.right::before,
.phone-screen .slider .arrow.right::before {
  content: "❯" !important;
}

/* Override any RTL flipping */
[dir="rtl"] .slider .arrow.left::before,
[dir="rtl"] .slider .arrow.right::before,
[dir="rtl"] .phone-screen .slider .arrow.left::before,
[dir="rtl"] .phone-screen .slider .arrow.right::before {
  content: "" !important;
}

[dir="rtl"] .slider .arrow.left::before {
  content: "❮" !important;
}

[dir="rtl"] .slider .arrow.right::before {
  content: "❯" !important;
}

[dir="rtl"] .phone-screen .slider .arrow.left::before {
  content: "❮" !important;
}

[dir="rtl"] .phone-screen .slider .arrow.right::before {
  content: "❯" !important;
}
/* ===== ORDER CONFIRMATION POPUP MODAL ===== */
.order-modal {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.order-modal-content {
  background: white;
  padding: 30px 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  animation: slideUp 0.4s ease;
}

.order-modal-icon {
  font-size: 60px;
  margin-bottom: 15px;
}

.order-modal-content h2 {
  color: #ff7a00;
  font-size: 28px;
  margin-bottom: 15px;
}

.order-modal-content p {
  color: #555;
  font-size: 16px;
  margin-bottom: 25px;
  line-height: 1.5;
}

.order-modal-btn {
  background: linear-gradient(45deg, #ff7a00, #ff4500);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.order-modal-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(255, 122, 0, 0.4);
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
/* ===== ZOOMABLE IMAGE STYLES - Cursor-Following Zoom ===== */
.zoomable {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  background-color: #f5f5f5;
  width: 100%;
  height: 100%;
}

.zoom-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.zoomable-img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Shows full image without cropping */
  transition: transform 0.2s ease-out;
  cursor: zoom-in;
  transform-origin: 0 0;
}

/* Zoom hint text */
.zoom-hint {
  text-align: center;
  font-size: 12px;
  color: #4CAF50;
  margin: -10px 0 15px 0;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Preview box styling - FIXED for perfect fit */
.preview-box {
  width: 160px;
  height: 160px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 10px rgba(0,0,0,0.15);
  border: 2px solid #ff7a00;
  flex-shrink: 0;
  background: #f5f5f5;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-box img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Shows full image without cropping */
}

/* For the zoomable container inside preview box */
.preview-box.zoomable {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-box.zoomable .zoom-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Base preview box - same styling */
#basePreviewBox,
#customBasePreviewBox {
  display: flex;
  align-items: center;
  justify-content: center;
}

#basePreviewBox img,
#customBasePreviewBox img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Confirmation Modal */
.confirmation-modal {
  text-align: center;
  max-width: 400px;
}

.confirmation-icon {
  font-size: 60px;
  margin-bottom: 20px;
}

.confirmation-modal h2 {
  color: #4CAF50;
  margin-bottom: 15px;
}

.confirmation-modal p {
  color: #666;
  margin-bottom: 25px;
  line-height: 1.5;
}
/* ===== BEST COMBO BUTTONS ===== */
.best-combo-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin: 20px 0;
  flex-wrap: wrap;
}

.combo-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.combo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* ===== TEMPORARY MESSAGE ===== */
.temp-message {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #4CAF50;
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: bold;
  z-index: 2000;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  animation: slideInRight 0.3s ease;
}

.temp-message.fade-out {
  animation: fadeOut 0.5s ease forwards;
}

@keyframes slideInRight {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100px);
  }
}

/* Responsive */
@media (max-width: 600px) {
  .best-combo-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .combo-btn {
    width: 100%;
  }

  .temp-message {
    bottom: 20px;
    right: 20px;
    left: 20px;
    text-align: center;
  }
}
/* ===== TEXTURE TEMPORARY MESSAGE - Positioned to the LEFT of texture buttons ===== */
.base-preview-row {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.texture-boxes-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 90px;
  position: relative;
}

/* Message appears to the LEFT of the texture buttons container */
.texture-temp-message {
  background: linear-gradient(135deg, #ff7a00, #ff4500);
  color: white;
  padding: 8px 15px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  animation: pulse 0.5s ease;
  box-shadow: 0 2px 10px rgba(255, 122, 0, 0.3);
  white-space: nowrap;
  margin-right: 15px;  /* Changed from margin-left to margin-right */
  order: -1;           /* Makes it appear before the texture boxes */
}

/* On smaller screens, stack vertically */
@media (max-width: 700px) {
  .texture-temp-message {
    margin-right: 0;
    margin-bottom: 10px;
    white-space: normal;
    order: 0;
  }

  .base-preview-row {
    flex-direction: column;
  }
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}