/* ==========================================================
   E-commerce Full Stable CSS (Fixed Layout, Equal Height)
   ========================================================== */

/* GLOBAL BOX-SIZING */
*, *::before, *::after { box-sizing: border-box; }

/* Container */
.products-section .container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 7px;
}

/* Product Category */
.product-category { margin-top: 20px; display: block; }

/* Category Title */
.category-title {
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
  margin-top: 13px;
  margin-bottom: 16px;
  position: relative;
}
.category-title::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, #ff9800, #E685FF);
  border-radius: 2px;
}

/* Category Filter */
.category-filter {
  border: 1px solid #2b304c;
  padding: 7px;
  border-radius: 7px;
  margin-bottom: 7px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
}
.category-filter label { font-weight: 600; color: #fff; min-width: 120px; }
.category-filter select {
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #1f2540;
  color: #fff;
  font-size: 14px;
}
@media (max-width: 768px){
  .category-filter { flex-direction: column; align-items: flex-start; }
  .category-filter select { width: 100%; }
}

/* Product Grid */
.product-grid {
  display: grid;
  width: 100%;
  gap: 14px;
  grid-template-columns: repeat(var(--products-per-row-desktop, auto-fit), minmax(180px, 1fr));
  justify-content: center; 
  align-items: stretch;
}
@media (max-width:1024px){
  .product-grid { grid-template-columns: repeat(var(--products-per-row-tablet), minmax(160px, 1fr)); }
}
@media (max-width:768px){
  .product-grid { gap: 4px; grid-template-columns: repeat(var(--products-per-row-mobile), minmax(140px, 1fr)); }
}
@media (max-width:400px){
  .product-grid { grid-template-columns: repeat(var(--products-per-row-mobile), minmax(120px, 1fr)); }
}

/* Product Card */
.products-section .product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #2B304C;
  border-radius: 7px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
}

/* =========================
   Product Badges – Compact & Gorgeous (Updated for New + Hot)
   ========================= */
.product-card-wrapper {
    position: relative;
    overflow: hidden;
}

.product-image {
    position: relative;
}

/* Base badge style */
.product-badge {
    position: absolute;
    top: 0px;
    right: 0px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    border-radius: 4px;
    z-index: 10;
    background: linear-gradient(135deg, #9477FF, #E685FF);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(-5px); 
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.product-badge.show {
    opacity: 1;
    transform: translateY(0);
}


/* Hover effect */
.product-card:hover .product-badge {
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .product-badge {
        font-size: 9px;
        padding: 3px 6px;
    }
}

@media (max-width: 768px) {
    .product-badge {
        font-size: 8px;
        padding: 2px 5px;
    }
}

/* ================= Image Area ================= */
.products-section .product-card .product-image {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  flex-shrink: 0;
}
.products-section .product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s;
}

/* ================= Content Area ================= */
.products-section .product-card .content-area {
  display: flex;
  flex-direction: column;
  padding: 10px;
  height: 100%;
}

/* Product Name */
.products-section .product-card .product-name {
  font-size: 14px;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ================= Rating Row ================= */
.products-section .product-card .product-numeric-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: auto; /* Push to bottom if title grows */
  font-size: 12px;
}

.products-section .product-card .rating-value {
  display: flex;
  align-items: center;
  gap: 2px;
  font-weight: 600;
  color: #FFD700;
}

.products-section .product-card .rating-star {
  color: #FFD700;
  font-size: 12px;
}

.products-section .product-card .review-count {
  color: #9CA3AF;
  font-weight: 500;
  font-size: 12px;
}

/* ================= Price ================= */
.products-section .product-card .product-price {
  font-size: 13px;
  margin-top: auto;
  font-weight: 600;
}

/* ================= Add to Cart ================= */
.products-section .product-card .add-to-cart-button { 
  margin-top: 8px; 
  text-align: center; 
}
.products-section .product-card .add-to-cart-button p {
  border: 1px solid transparent;
  padding: 6px 10px;
  border-radius: 5px;
  margin: 0;
  background: #ff9800;
  color: #1f2540;
  font-weight: 600;
  transition: 0.25s;
  cursor: pointer;
}
.products-section .product-card .add-to-cart-button p:hover {
  background: #E685FF;
  color: #fff;
}

/* ================= Card Wrapper ================= */
.products-section .product-card-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.products-section .product-card {
  display: flex;
  flex-direction: column;
  background: #2B304C;
  border-radius: 7px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}

.products-section .product-card .content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px;
}

.add-to-cart-wrapper {
  margin-top: 6px;
  text-align: center;
}

.add-to-cart-wrapper p {
  border:1px solid #2b304c !important;
}

.add-to-cart-wrapper .button, .add-to-cart-wrapper .added_to_cart {
  display: flex;
  text-align:center;
  justify-content:center;
  padding: 6px 12px;
  background: #ff9800;
  color: #1f2540;
  font-weight: 600;
  border-radius: 5px;
  transition: 0.25s;
}

.add-to-cart-wrapper .button:hover {
  background: #E685FF;
  color: #fff;
}

/* ================= Media Queries ================= */
@media (max-width:1024px){
  .products-section .product-card .product-name { font-size:13px; }
  .products-section .product-card .product-price { font-size:12px; }
}
@media (max-width:768px){
  .products-section .product-card .product-name { font-size:12px; }
  .products-section .product-card .product-price { font-size:11px; }
}
@media (max-width:400px){
  .products-section .product-card .product-name { font-size:11px; }
  .products-section .product-card .product-price { font-size:10px; }
}

/* ================== PRODUCT DETAILS ================== */
/* Product Section Wrapper */
.product-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Left Panel */
.left-panel {
  flex: 1.2;
  min-width: 300px;
}

/* Product Header */
.product-header {
  background: #2B304C;
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  padding: 7px;
  border-radius: 11px;
}

/* Product Image (Left Panel) */
.product-image img {
  width: 100%;
  height: 100% !important;  /* force fully responsive */
  object-fit: cover !important;
  display: block;
  transition: transform 0.5s ease; /* Smooth zoom transition */
}

/* Hover Zoom Effect */
.product-card:hover .product-image img {
  transform: scale(1.1); /* Zoom 10% on hover */
}

/* Product Info */
.product-info {
  flex: 1;
}

/* Name & Meta */
.product-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.product-meta span {
  display: inline-block;
  margin-right: 15px;
  color: #fff;
}

/* Short Description */
.product-short-desc {
  margin: 10px 0;
  color: #fff;
  max-height: 50px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.product-short-desc.expanded {
  max-height: 200px;
}

.collapse-btn {
  background: none;
  color: #ff4d4d;
  font-weight: 500;
  cursor: pointer;
  margin-top: 5px;
}

/* Diamond Options Grid */

/* Right Panel */
.right-panel {
  flex: 0.8;
  min-width: 280px;
  background: #2B304C;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Form Fields */
.form-field {
  margin-bottom: 15px;
}

.form-field label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #fff;
}

.form-field input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #444;
  font-size: 14px;
  transition: 0.3s;
  background-color: #1b1f3d;
  color: #fff;
}

.form-field input:focus {
  border-color: #ff4d4d;
  box-shadow: 0 0 6px rgba(255,77,77,0.2);
}

/* Quantity Selector */
.quantity-selector {
  display: flex;
  align-items: center;
  margin: 15px 0;
}

.quantity-selector button {
  padding: 6px 12px;
  background: #ff4d4d;
  color: #fff;
  border-radius: 4px;
  font-size: 16px;
  border: none;
  transition: 0.3s ease;
  cursor: pointer;
}

.quantity-selector button:hover {
  background: #e04444;
}

.quantity-selector span {
  margin: 0 10px;
  font-weight: 600;
}

/* Live Price & Submit Button */
.live-price {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #fff;
}

.submit-btn {
  width: 100%;
  padding: 10px;
  background: #ff4d4d;
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  transition: 0.3s;
  cursor: pointer;
}

.submit-btn:hover {
  background: #e04444;
}

/* ================== PRODUCT DESCRIPTION ================== */
.product-description {
  margin: 30px 0;
  background: #2B304C;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.product-description h2 {
  margin-bottom: 10px;
  color: #fff;
}

.product-description p {
  color: #fff;
}

/* ================== SUBTOTAL & REVIEWS ================== */
.subtotal,
.reviews {
  margin: 20px 0;
  background: #2B304C;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.subtotal .row,
.reviews p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 500;
  color: #fff;
}

.subtotal .row.total {
  font-size: 18px;
  font-weight: 700;
  color: #E685FF;
  margin-top: 10px;
  border-top: 1px solid #333;
  padding-top: 10px;
}

.reviews h2 {
  margin-bottom: 10px;
  color: #fff;
}

/* ================== SIDEBAR & ARCHIVE GRID ================== */
.sidebar-section {
  width: 280px;
  position: fixed;
  left: 20px;
  top: 69px;
  background: #131938;
  padding: 20px;
  border-radius: 12px;
  color: #fff;
}

.sidebar-section h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.sidebar-section ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.sidebar-section ul li a {
  color: #bbb;
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
  transition: 0.2s;
}

.sidebar-section ul li a:hover {
  color: #E685FF;
}

.sidebar-section input[type="range"] {
  width: 100%;
  margin-bottom: 20px;
}

.products-archive{
    padding-bottom:29px;
}

/* ================== COMMENTS ================== */
.comments-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px;
  border-radius: 12px;
  color: #fff;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 25px;
  text-align: center;
}

.comment-card {
  background: #2b304c;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 15px;
  border: 1px solid rgba(255,255,255,0.05);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: 600;
}

.comment-author { color: #E685FF; }
.comment-date { color: #bbb; font-size: 14px; }
.comment-text { color: #ccc; font-size: 16px; }

/* Comment Form */
.comment-form {
  margin-top: 30px;
  background: #2b304c;
  padding: 20px;
  border-radius: 12px;
}

.comment-form .form-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
}

.comment-form form input,
.comment-form form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: #131938;
  color: #fff;
}

.comment-form form button {
  padding: 10px 20px;
  background: linear-gradient(to right, #E377FF, #9477FF);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.comment-form form button:hover { opacity: 0.85; }

/* ================== CART ================== */
.cart-section {
  padding: 80px 20px;
  color: #fff;
  min-height: 100vh;
}

.cart-container {
  max-width: 1100px;
  margin: 0 auto;
}

.cart-title {
  font-size: 36px;
  font-weight: 700;
  color: #9477FF;
  text-align: center;
  margin-bottom: 50px;
}

.cart-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 50px;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0b0f2d;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cart-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

/* Cart Item Image */
.cart-item-image img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 15px;
}

/* Cart Item Details */
.cart-item-details { flex: 1; margin-left: 20px; }
.cart-item-name { font-size: 18px; font-weight: 700; color: #E685FF; margin-bottom: 8px; }
.cart-item-meta { font-size: 14px; color: #ccc; margin-bottom: 12px; }

.cart-quantity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-btn {
  background: #9477FF;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

.qty-number {
  min-width: 24px;
  text-align: center;
}

/* Price & Remove */
.cart-item-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  font-weight: 600;
}

.remove-btn {
  background: #E685FF;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

/* Cart Summary */
.cart-summary {
  max-width: 400px;
  margin: 0 auto;
  background: #0b0f2d;
  padding: 25px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.cart-summary h3 {
  font-size: 24px;
  font-weight: 700;
  color: #9477FF;
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 16px;
  color: #ccc;
}

.summary-row.total {
  font-size: 18px;
  font-weight: 700;
  color: #E685FF;
  margin-top: 10px;
  border-top: 1px solid #333;
  padding-top: 10px;
}

/* ================== CHECKOUT ================== */
.woocommerce .container,
.woocommerce-cart .container,
.woocommerce-checkout .container,
.woocommerce-account .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.left-column h2,
.left-column h3 {
    font-size: 18px;
    margin-top: 11px;
    margin-bottom: 0;
    padding: 0;
}

.confirm-text {
    font-size:18px;
    color: #FF6900;
}

.left-column { flex: 2; display: flex; flex-direction: column; gap: 20px; }
.right-column { flex: 1; display: flex; flex-direction: column; gap: 20px;
    margin-top: 57px; }

.section {
  background-color: #2b304c;
  border-radius: 12px;
  padding: 13px;
}

.section h2, .section h3 {
  margin-top: 0;
  font-size: 18px;
  font-weight: bold;
}

.product-details .item {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
  font-size: 16px;
}

.checkout-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 14px;
}

.checkout-form input {
  width: 100%;
  padding: 13px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #444;
  background-color: #fff;
  color: #000;
}

.payment-method img {
  width: 100%;
  max-width: 150px;
  margin-bottom: 15px;
  display: block;
}

.pay-btn {
  width: 100%;
  padding: 12px;
  border: none;
  background-color: #8b5cf6;
  color: #fff;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.pay-btn:hover { background-color: #7c3aed; }

/* checkout page - add-to-cart notice hide */
body.woocommerce-checkout .woocommerce-message {
    display: none;
}

/* All browsers compatible */
input::placeholder {
    font-size: 16px; 
    color: #999;     
}

/* Firefox old versions */
input:-moz-placeholder {
    font-size: 16px;
}

/* Firefox modern */
input::-moz-placeholder {
    font-size: 16px;
}

/* IE */
input:-ms-input-placeholder {
    font-size: 16px;
}

/* Edge */
input::-ms-input-placeholder {
    font-size: 16px;
}

/* ================= Product Details Flex Styling ================= */
.product-details-wrapper {
    border-radius: 0.5rem; /* rounded-lg */
    padding: 1rem; /* p-4 */
    margin-top: 0.75rem; /* mt-3 */
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* space-y-2 */
}
.product-details-wrapper .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.product-details-wrapper .row p {
    flex: 1;
    margin: 0;
}
.product-details-wrapper .row p.flex.items-center {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.product-details-wrapper .price svg.size-3 {
    width: 0.75rem;
    height: 0.75rem;
}
.checkout-btn {
  width: 100%;
  background: #9477FF;
  border: none;
  padding: 12px 0;
  border-radius: 12px;
  font-weight: 700;
  color: #fff;
  margin-top: 20px;
  cursor: pointer;
  transition: 0.3s;
}

.checkout-btn:hover { background: #E685FF; }

/* ================== Single Product ================== */

/* ================= Container Fix ================= */
.custom-container { max-width: 1300px; margin:0 auto; padding:0 15px; }

/* ================= Product Section ================= */
.product-section { display:flex; flex-wrap:wrap; gap:20px; padding:13px 0; }
.left-panel { flex:1 1 65%; min-width:300px; }
.right-panel { flex:1 1 30%; min-width:250px; background:#2B304C; padding:20px; border-radius:10px; box-shadow:0 4px 12px rgba(0,0,0,0.06); }

/* ================= Product Header ================= */
.product-header-modern { width:100%; background:#2B304C; padding:15px; border-radius:14px; display:flex; gap:20px; align-items:flex-start; flex-wrap:wrap; }
.ph-image img { width:110px; height:110px; object-fit:cover; border-radius:10px; }
.ph-info { flex:1; display:flex; flex-direction:column; gap:8px; }
.ph-title { font-size:20px; font-weight:700; color:#fff; }
.ph-badge { background:linear-gradient(to right,#E377FF,#9477FF); color:#fff; width:100%; padding:6px 12px; border-radius:8px; font-size:14px; font-weight:600; margin-top:4px; }

/* ================= Meta Info ================= */
.meta-info { display:flex; gap:10px; align-items:center; }
.icon-green { color:#4ade80; }
.flag-meta { display:flex; align-items:center; gap:4px; }
.flag-meta img { width:20px; height:20px; border-radius:50%; }
.flag-meta span { color:#fff; }
.instant svg {
    color: green;
}

.badge-toggle{
    color:#000;
}

/* ================= Diamond Grid ================= */
.diamond-grid { background:#2B304C; padding:9px; border-radius:11px; display:grid; grid-template-columns:repeat(4,1fr); gap:7px; margin-top:20px; }
.diamond {font-size: 11px!important;border:1px solid #040B2D; background:#040B2D;border-radius:10px; padding:10px; text-align:center; cursor:pointer; transition:all .7s ease; box-shadow:0 2px 6px rgba(0,0,0,0.05); }
.diamond:hover, .diamond.active { border:1px solid #fff; box-shadow:0 4px 12px rgba(0,0,0,0.1); }
.diamond sup { font-size:9px; color:#ff4d4d; }

/* ================= Form Fields ================= */
.form-field { margin-bottom:15px; }
.form-field label { display:block; margin-bottom:5px; font-weight:500; color:#fff; font-size:14px; }
.form-field input { width:100%; padding:10px 12px; border-radius:8px; border:1px solid #ccc; font-size:14px; transition:0.3s; background:#fff; color:#111827; }
.form-field input:focus { border-color:#ff4d4d; box-shadow:0 0 6px rgba(255,77,77,0.2); outline:none; }

/* ================= Quantity ================= */
.product-quantity-wrapper h6 { font-size:14px; font-weight:500; color:#fff; margin-bottom:8px; }
.quantity-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; align-items:center; }
.quantity-btn { display:flex; justify-content:center; align-items:center; padding:8px 0; border:1px solid #6B7280; border-radius:6px; color:#fff; background:transparent; font-size:16px; cursor:pointer; transition:0.3s; }
.quantity-display { text-align:center; font-weight:600; font-size:16px; }

/* ================= Submit Button ================= */
.submit-btn { width:100%; padding:12px 0; font-weight:500; color:#fff; border-radius:8px; border:none; cursor:pointer; background:linear-gradient(to right,#E377FF,#9477FF); transition:0.3s; margin-top:13px; }

/* ================= Order Info ================= */
.order-info { position:relative; background:#1F2340; padding:30px 12px 12px 12px; border-radius:8px; margin-bottom:20px; color:#fff; }
.clear-btn { position:absolute; top:10px; right:10px; cursor:pointer; background:#ff4d4d; color:#fff; padding:3px 8px; border-radius:6px; font-size:12px; font-weight:600; transition:0.3s; }
.clear-btn:hover { background:#e04444; }
.item-info { display:flex; justify-content:space-between; margin-top:5px; color:#fff; }

/* ================= Reviews & Description ================= */
.product-description, .reviews { background:#2B304C; border-radius:10px; padding:20px; box-shadow:0 4px 12px rgba(0,0,0,0.05); margin-top:20px; color:#fff; }

/* ================= Responsive ================= */
@media (max-width:1024px){ .diamond-grid{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:768px){ 
  .product-section{ flex-direction:column; }
  .left-panel, .right-panel{ flex:1 1 100%; }
  .diamond-grid{ grid-template-columns:repeat(2,1fr); }
  .ph-image img{ width:90px; height:90px; }
  .diamond {
      font-size:11px;
}
}

/* Tab Section */
/* Main Fonts */
.product-tabs {
  font-family: 'Poppins', sans-serif;
  margin-top: 40px;
  padding-bottom:7px;
}

/* Tab Buttons */
.tab-buttons {
  display: flex;
  border-bottom: 2px solid #2B304C;
  margin-bottom: 20px;
}

.tab-btn {
  padding: 12px 24px;
  cursor: pointer;
  font-size: 16px;
  border: none;
  background: #2B304C;
  color: #fff;
  margin-right: 6px;
  border-radius: 6px 6px 0 0;
  transition: 0.3s;
}

.tab-btn:hover {
  background: #040B2D;
}

.tab-btn.active {
  background: #040B2D;
  color: #fff;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.2);
}

/* Tab Content */
.tab-content {
  display: none;
  background: #2B304C;
  padding: 39px;
  border-radius: 0 0 10px 10px;
  color: #fff;
}

.tab-content.active {
  display: block;
}

.tab-content h2 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #ff4b4b;
}

.highlight-btn {
    outline: 3px solid #fff;
    outline-offset: 3px;
    transition: outline 0.3s ease;
}

/* =========================
   Mobile: clean two-column product header + full-width badge
========================= */
@media (max-width: 768px) {

  /* Hide desktop header */
  .product-header-desktop { display: none; }

  /* Show mobile header */
  .product-header-mobile {
    display: block;
    padding: 12px;
    background:#2B304C;
    border-radius: 14px;
  }

  .product-header-mobile .ph-row {
    display: flex;
    gap: 12px;
    align-items: center;
  }

  /* Left: Image */
  .ph-left {
    flex: 0 0 90px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .ph-left img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
  }

  /* Right: Info */
  .ph-right {
    flex: 1 1 calc(100% - 100px);
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .ph-right .ph-title {
    font-size: 18px;
    margin: 0 0 6px 0;
    line-height: 1.2;
  }
  .ph-right .meta-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    flex-wrap: wrap;
  }
  .ph-right .flag-meta img { width: 20px; height: 20px; }

  /* Full-width badge below info */
  .ph-badge-mobile {
    margin-top: 12px;
    width: 100%;
    padding: 10px 12px;
    background: #CE77FF;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
  }

  /* Very small screens adjustments */
  @media (max-width: 420px) {
    .ph-left { flex: 0 0 78px; }
    .ph-left img { width: 78px; height: 78px; }
    .ph-right .ph-title { font-size: 15px; }
    .ph-badge-mobile { font-size: 13px; padding: 7px 10px; }
  }
}

/* By default, hide mobile header */
.product-header-mobile {
  display: none;
}

/* Show mobile header only on screens <=768px */
@media (max-width: 768px) {
  .product-header-mobile {
    display: block;
  }
}