/* ===== Basic Reset ===== */
* {
   box-sizing: border-box;
   margin: 0;
   padding: 0;
   transition: all 0.25s ease; /* GLOBAL TRANSITION */
}
html,
body {
   font-family: "Inter", "Poppins", system-ui, Arial;
   color: #111;
   background: #fff;
   height: auto;
   overflow-x: hidden;
}
img {
   display: block;
   max-width: 100%;
   height: auto;
}
.container {
   max-width: 1200px;
   margin: 0 auto;
   padding: 0 16px;
}

/* ===== UNIVERSAL BUTTON & ANCHOR EFFECT ===== */
a,
button {
   position: relative;
   overflow: hidden;
}

a:hover,
button:hover {
   transform: translateY(-3px) scale(1.02);
   filter: brightness(1.03);
}

a::after,
button::after {
   content: "";
   position: absolute;
   top: -100%;
   left: -50%;
   width: 200%;
   height: 250%;
   background: rgba(255, 255, 255, 0.25);
   transform: rotate(25deg);
   transition: 0.5s ease-in-out;
}

a:hover::after,
button:hover::after {
   top: 0%;
}

/* ===== TOP BAR ===== */
.top-bar {
   background-color: #199a00; 
   display: flex;
   justify-content: center;
   align-items: center;
   gap: 24px; 
   padding: 6px 10px;
   font-size: 14px;
   font-weight: 600;
}

.top-bar .top-link {
   display: flex;
   align-items: center;
   gap: 6px;
   text-decoration: none;
   color: #ffffff;
   transition: all 0.3s;
}

/* Icon button styling */
.top-bar .top-link i {
   font-size: 16px;
   background-color: #ffffff22; /* semi-transparent background */
   padding: 6px;
   border-radius: 50%;
   transition: all 0.3s;
   cursor: pointer;
}

/* Hover effect for icons */
.top-bar .top-link:hover i {
   background-color: #ffffff;
   color: #199a00;
   transform: scale(1.1);
}

/* Hover effect for text */
.top-bar .top-link:hover span {
   text-decoration: underline;
}

/* ===== Header ===== */
.site-header {
   border-bottom: 1px solid #eee;
   position: sticky;
   top: 0;
   background: #fff;
   z-index: 40;
}
.header-inner {
   display: flex;
   align-items: center;
   gap: 16px;
   height: 68px;
}
.logo {
   width: 120px;
}

.search {
   display: flex;
   flex: 1;
   gap: 6px;
}
.search input {
   flex: 1;
   padding: 10px 12px;
   border-radius: 20px;
   border: 1px solid #ddd;
}
.search button {
   background: #199a00;
   color: #fff;
   border: 0;
   padding: 8px 12px;
   border-radius: 16px;
   cursor: pointer;
}

.top-actions {
   display: flex;
   justify-content: flex-end;
   gap: 10px;
   padding: 12px;
}

/* Buttons */
.top-actions .login,
.top-actions .join {
   display: inline-block;
   padding: 1rem 2rem;
   font-weight: 700;
   background: rgb(255, 255, 255);
   color: blueviolet;
   cursor: pointer;
   border-radius: 0.5rem;
   border: 2px solid blueviolet;
   transition-duration: 1s;
   transition-property: border, box-shadow;
   font-size: 14px;
   text-decoration: none;
}

/* Hover effect */
.top-actions .login:hover,
.top-actions .join:hover {
   border-color: rgb(238, 103, 238);
   box-shadow: rgba(240, 46, 170, 0.4) 5px 5px,
      rgba(240, 46, 170, 0.3) 10px 10px, rgba(240, 46, 170, 0.2) 15px 15px;
}

/* ===== Breadcrumb ===== */
.breadcrumbs {
   font-size: 13px;
   color: #666;
   margin: 12px 0;
}

/* ===== Product Rows ===== */
.product-rows {
   display: flex;
   flex-direction: column;
   gap: 28px;
}

/* ===== Gallery ===== */
.gallery .main-image {
   background: #fff;
   padding: 20px;
   border: 1px solid #f1f1f1;
   border-radius: 6px;
   display: flex;
   justify-content: center;
   align-items: center;
   position: relative;
}
.badge-left {
   position: absolute;
   left: 16px;
   top: 16px;
   background: #fff;
   padding: 4px 8px;
   border-radius: 6px;
   font-size: 12px;
   box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.thumbs {
   display: flex;
   gap: 8px;
   margin-top: 12px;
   list-style: none;
   padding: 0;
}
.thumb {
   width: 72px;
   height: 72px;
   border-radius: 8px;
   border: 1px solid #eee;
   padding: 6px;
   display: flex;
   align-items: center;
   justify-content: center;
   cursor: pointer;
   background: #fff;
}
.thumb img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   border-radius: 6px;
}
.thumb.active {
   outline: 2px solid #199a00;
}

/* ===== Product Info ===== */
.product-info {
   padding: 18px;
   background: #fff;
   border: 1px solid #f1f1f1;
   border-radius: 6px;
}
.product-info h1 {
   font-size: 20px;
   margin-bottom: 8px;
}

.rating-line {
   display: flex;
   gap: 12px;
   align-items: center;
   margin-bottom: 12px;
   color: #555;
   font-size: 14px;
}

.price-wrap {
   margin-bottom: 8px;
}
.price-main {
   font-size: 28px;
   color: #199a00;
   font-weight: 700;
}
.price-old {
   color: #999;
   margin-top: 6px;
}
.price-old .discount {
   color: #ff3b30;
   background: #fff3f3;
   padding: 2px 6px;
   border-radius: 4px;
   margin-left: 8px;
   font-weight: 600;
}

/* Size Picker */
.variant {
   margin: 12px 0;
}
.variant-label {
   font-weight: 600;
   display: block;
   margin-bottom: 6px;
}
.sizes {
   display: flex;
   flex-wrap: wrap;
   gap: 8px;
}
.size {
   padding: 8px 12px;
   border: 1px solid #ddd;
   background: white;
   border-radius: 6px;
   cursor: pointer;
}
.size.active {
   border-color: #199a00;
   background: #e9f2ff;
   color: #199a00;
}
.size.disabled {
   opacity: 0.45;
   cursor: not-allowed;
}

/* Extras */
.extras {
   border-top: 1px dashed #eee;
   padding-top: 12px;
   margin-top: 12px;
   display: grid;
   gap: 12px;
}
.protection {
   font-size: 14px;
   color: #333;
}

.voucher-card {
   display: flex;
   align-items: center;
   gap: 12px;
   border: 1px solid #f0f5ff;
   padding: 10px;
   border-radius: 8px;
   background: #fff;
}
.voucher-card img {
   width: 44px;
   height: 44px;
   object-fit: contain;
}

.use-voucher {
   margin-left: auto;
   background: #fff;
   border: 1px solid #199a00;
   color: #199a00;
   padding: 6px 10px;
   border-radius: 6px;
   cursor: pointer;
}

/* Store Box */
.store-box {
   border: 1px solid #f1f1f1;
   border-radius: 10px;
   padding: 12px;
   background: #fff;
}
.store-header {
   display: flex;
   gap: 12px;
   align-items: center;
   margin-bottom: 8px;
}
.store-header img {
   width: 54px;
   height: 54px;
   border-radius: 8px;
   object-fit: cover;
}
.store-name {
   font-weight: 700;
   font-size: 16px;
}
.store-rating {
   color: #777;
   font-size: 14px;
}
.store-badge {
   display: flex;
   gap: 6px;
   margin-top: 4px;
}
.store-badge span {
   font-size: 12px;
   font-weight: 600;
   padding: 2px 6px;
   border-radius: 4px;
   color: #fff;
}
.official {
   background: #199a00;
}
.top-rated {
   background: #b8752f;
}
.store-body {
   font-size: 14px;
   color: #333;
   margin-top: 8px;
}
.store-body .store-info p {
   margin-top: 4px;
   line-height: 1.5;
   font-size: 13px;
   color: #555;
}
.store-social {
   display: flex;
   gap: 10px;
   margin-bottom: 10px;
   align-items: center;
}

.store-social i {
   font-size: 20px;
   color: #333;
}

.check-location {
   display: inline-block;
   margin-top: 8px;
   color: #199a00;
   font-weight: 600;
   text-decoration: none;
   font-size: 13px;
}

.fixed-bottom-bar {
   position: fixed;
   bottom: 0;
   left: 0;
   width: 100%;
   background: #ffffff;
   border-top: 1px solid #ddd;
   padding: 10px 10px;
   display: flex;
   gap: 20px;
   align-items: center;
   justify-content: center;
   z-index: 9999;
   flex-wrap: nowrap;
}

/* LEFT SIDE: Image + Title */
.item-left {
   display: flex;
   align-items: center;
   gap: 10px;
   max-width: 300px; /* Prevents title from taking too much space */
}

.item-left img {
   width: 50px;
   height: 50px;
   border-radius: 6px;
   object-fit: cover;
}

.item-left h2 {
   font-size: 14px;
   font-weight: 600;
   line-height: 1.3;
   color: #222;
}

/* Qty Box */
.qty-box {
   background: #f4f4f4;
   padding: 20px 20px;
   border-radius: 12px;
   display: flex;
   align-items: center;
   gap: 10px;
}

.qty-btn {
   background: none;
   border: none;
   font-size: 18px;
   color: #333;
   cursor: pointer;
   padding: 2px 6px;
}

.qty-number {
   font-size: 16px;
   min-width: 20px;
   text-align: center;
}

/* Price */
.total-price {
   display: flex;
   flex-direction: column;
   font-size: 12px;
   text-align: center;
}

.total-price strong {
   color: #199a00;
   font-size: 16px;
}

/* Buttons */
/* Shared Button Style */
.btn-outline,
.btn-solid {
   display: inline-block;
   padding: 1rem 2rem;
   font-weight: 700;
   background: #ffffff;
   color: #199a00;
   cursor: pointer;
   border-radius: 30px; /* rounded pill */
   font-size: 18px;
   text-decoration: none;

   /* Uiverse effect */
   border-bottom: 2px solid #199a00;
   border-right: 2px solid #199a00;
   border-top: 2px solid #b6d6ff;
   border-left: 2px solid #b6d6ff;
   transition-duration: 1s;
   transition-property: border-top, border-left, border-bottom, border-right,
      box-shadow;
}

/* Hover Animation */
.btn-outline:hover,
.btn-solid:hover {
   border-top: 2px solid #199a00;
   border-left: 2px solid #199a00;
   border-bottom: 2px solid #199a00;
   border-right: 2px solid #199a00;
   box-shadow: rgba(255, 115, 0, 0.4) 5px 5px, rgba(255, 115, 0, 0.4) 10px 10px,
      rgba(255, 115, 0, 0.4) 15px 15px;
}

/* Wishlist button */
.wish-btn {
   width: 38px;
   height: 38px;
   background: #ff4d4d;
   border-radius: 50%;
   border: none;
   font-size: 18px;
   cursor: pointer;
   color: white;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: 0.3s ease;
   box-shadow: 0 2px 6px rgba(255, 77, 77, 0.4);
}

/* Hover effect */
.wish-btn:hover {
   background: #ff1a1a;
   box-shadow: 0 4px 12px rgba(255, 77, 77, 0.5);
   transform: translateY(-2px);
}

/* footer style */
/* Footer Style */
.site-footer {
   background: #000;
   color: #fff;
   padding: 12px 0;
   text-align: center;
   font-size: 12px;
   border-radius: 10px;
   margin-top: 40px;
   box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.3);
}

.footer-container {
   max-width: 1200px;
   margin: 0 auto;
   padding: 0 16px;
}

.site-footer a {
   color: #fff;
   text-decoration: underline;
   margin: 0 8px;
   transition: 0.3s ease;
}

.site-footer a:hover {
   color: #199a00;
}

.footer-links {
   margin: 8px 0;
}

.footer-location {
   font-weight: 500;
   margin-top: 4px;
}

/* Responsive Fix */
@media (max-width: 480px) {
   .footer-links a {
      display: inline-block;
      margin: 4px 6px;
   }
}

/* Avoid overlap */
body {
   padding-bottom: 110px;
}

/* ===== Mobile Styles ===== */
@media (max-width: 768px) {
   body {
      padding-bottom: 450px; /* increase so content is fully scrollable */
   }
   .item-left {
      width: 100%;
      max-width: 100%;
      flex-direction: column;
      align-items: center;
      gap: 24px;
   }

   .item-left img {
      width: 100px;
      height: 100px;
   }

   .item-left h2 {
      font-size: 22px;
      font-weight: 700;
      line-height: 1.1;
      text-align: center;
   }

   /* Hide only the login/join nav */
   .top-actions {
      display: none;
   }

   .fixed-bottom-bar {
      flex-direction: column;
      align-items: stretch;
      gap: 6px;
      padding: 8px 10px;
      transform: scale(1);
      transform-origin: bottom center;
   }

   /* Qty box smaller */
   .qty-box {
      width: 100%;
      justify-content: space-between;
      transform: scale(0.95);
   }

   /* Total price smaller */
   .total-price {
      width: 100%;
      text-align: left;
      margin-top: 4px;
      font-size: 13px;
   }

   /* Buttons full width */
   .btn-outline,
   .btn-solid {
      width: 100%;
      text-align: center;
      padding: 8px 0;
      font-size: 13px;
   }

   /* Wishlist button alignment */
   .wish-btn {
      align-self: flex-end;
      margin-top: 4px;
      font-size: 12px;
   }
}

/* ===== 3-Column Layout ===== */
@media (min-width: 980px) {
   .product-rows {
      display: grid;
      grid-template-columns: 1.2fr 1.5fr 1fr;
      gap: 24px;
   }

   .gallery {
      grid-column: 1;
   }

   .product-info {
      grid-column: 2;
   }
   .store-box {
      grid-column: 3;
   }
}

@media (max-width: 979px) {
   .product-rows {
      display: flex;
      flex-direction: column;
      gap: 28px;
   }
}
