/*
Theme Name: Roaida Store
Theme URI: https://roaidascents.pk/
Author: Genspark
Description: Custom WooCommerce-ready theme matching the provided HTML design.
Version: 1.0.0
Text Domain: roaida-store
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #ffffff;
  --cream: #f4f0ec;
  --dark: #2a2a2a;
  --accent: #636363;
  --accent-dark: #8c7866;
  --text: #4a4a4a;
  --muted: #888888;
  --border: #e8e0d8;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
body.admin-bar .site-header { top: 12px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
h1, h2, h3, h4, h5 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--dark);
  font-weight: 500;
  letter-spacing: .5px;
}
.site-wrap { overflow: hidden; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #ece7e2;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
}
.site-logo img {
  width: 158px;
  height: auto;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a,
.header-actions a {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color .2s ease;
}
.main-nav a:hover,
.header-actions a:hover { color: var(--accent); }

/* --- HEADER ACTIONS --- */
.header-actions { display: flex; align-items: center; gap: 30px; }
.country-selector { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; font-weight: 500; letter-spacing: 1px; color: var(--text); transition: color 0.3s; }
.country-selector:hover { color: #222222; }
.country-selector .flag { font-size: 16px; }
.header-icons-wrap { display: flex; align-items: center; gap: 20px; }
.icon-link { color: var(--dark); display: flex; align-items: center; justify-content: center; transition: color 0.3s ease; position: relative; }
.icon-link:hover { color: #222222; }
.cart-icon-wrapper { position: relative; }
.cart-badge { position: absolute; top: -6px; right: -8px; background-color: #222222; color: #fff; font-size: 11px; font-weight: 600; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; border-radius: 50%; line-height: 1; }

.hero-slider { position: relative; width: 100%; height: 90vh; overflow: hidden; }
.slides, .slide { width: 100%; height: 100%; }
.slides { position: relative; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease-in-out; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.section { padding: 90px 0; }
.section-cream { background: #fff; }
.section-title { text-align: center; font-size: clamp(34px, 4vw, 52px); margin-bottom: 8px; letter-spacing: 2px; }
.section-sub { text-align: center; color: var(--muted); letter-spacing: 1.5px; margin-bottom: 46px; font-size: 14px; text-transform: uppercase; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.product-card { background: #fff; padding: 22px; text-align: center; border-radius: 4px; transition: transform .3s, box-shadow .3s; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.product-card img { width: 100%; height: 320px; object-fit: cover; border-radius: 4px; margin-bottom: 16px; }
.product-card h3 { font-size: 24px; margin-bottom: 4px; }
.product-desc { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.price { font-weight: 600; color: var(--dark); font-size: 16px; }
.btn-primary, .btn-secondary, button, input[type="submit"] { display: inline-block; cursor: pointer; border: none; transition: all .3s ease; text-transform: uppercase; letter-spacing: 1.5px; }
.btn-primary { background: var(--dark); color: #fff; padding: 14px 36px; font-size: 13px; }
.btn-primary:hover { background: #222222; }
.btn-secondary { background: transparent; border: 1px solid var(--dark); color: var(--dark); padding: 11px 24px; font-size: 12px; margin-top: 12px; }
.btn-secondary:hover { background:#000000;  color: #fff; }
.features-banner { background: #000000; color: #fff; padding: 18px 0; overflow: hidden; white-space: nowrap; }
.features-track { display: inline-flex; gap: 60px; animation: scroll 25s linear infinite; padding-left: 60px; }
.features-track span { font-size: 14px; letter-spacing: 2px; text-transform: uppercase; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.story, .hair-mist { padding: 90px 0; }
.story-inner, .hair-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.story-image img, .hair-image img { border-radius: 4px; aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.story-text h2, .hair-text h2 { font-size: clamp(34px, 4vw, 54px); margin-bottom: 20px; line-height: 1.05; }
.story-text p, .hair-text p { font-size: 17px; margin-bottom: 28px; }
.newsletter { background: var(--accent); color: #fff; text-align: center; padding: 72px 24px; }
.newsletter h2 { color: #fff; font-size: 38px; margin-bottom: 10px; }
.newsletter p { margin-bottom: 26px; opacity: .95; }
.newsletter .btn-primary { background: #fff; color: #222222; }
.newsletter .btn-primary:hover { background: var(--cream); }
.site-footer { background: #222222; color: #fff; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 40px; padding-bottom: 40px; }
.footer-logo img { width: 151px; height: auto; margin-bottom: 10px; }
.site-footer h4 { color: #fff; font-family: 'Inter', sans-serif; font-size: 14px; letter-spacing: 2px; margin-bottom: 16px; }
.site-footer a { display: block; color: #e8e8e8; margin-bottom: 8px; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); text-align: center; padding: 20px 0; font-size: 13px; color: #ececec; }
.content-area, .woocommerce-page .site-main, .page .site-main, .single .site-main, .archive .site-main { padding: 70px 0; }
.content-card { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.entry-title, .page-title { font-size: clamp(34px, 4vw, 52px); text-align: center; margin-bottom: 14px; }
.entry-content, .term-description, .archive-description { max-width: 980px; margin: 0 auto; }
.entry-content > * + * { margin-top: 18px; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { text-align: center; }
.woocommerce ul.products li.product a img, .woocommerce-page ul.products li.product a img { border-radius: 4px; }
.woocommerce span.onsale { background: #222222; }
.woocommerce div.product .product_title { font-size: clamp(34px, 4vw, 48px); }
.woocommerce .button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit { background: var(--dark); color: #fff; border-radius: 0; padding: 13px 24px; }
.woocommerce .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce #respond input#submit:hover { background: #222222; color: #fff; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: #222222; }
.site-main .woocommerce-breadcrumb, .woocommerce .woocommerce-breadcrumb { margin-bottom: 20px; }
.shop-empty { text-align: center; color: var(--muted); margin-top: 12px; }

/* MEDIA QUERIES */
@media (max-width: 1024px) {
  .product-grid, .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 768px) {
  body.admin-bar .site-header { top: 46px; }
  .header-inner { flex-direction: column; padding: 14px 20px; }
  .main-nav ul { flex-wrap: wrap; justify-content: center; gap: 14px 18px; }
  .header-actions { gap: 16px; flex-direction: column; }
  .header-icons-wrap { gap: 16px; }
  .hero-slider { height: 62vh; }
  .section, .story, .hair-mist { padding: 64px 0; }
  .product-grid, .story-inner, .hair-inner, .footer-grid { grid-template-columns: 1fr; }
  .product-card img { height: 280px; }
  .story-text h2, .hair-text h2 { line-height: 1.1; }
}

/* SEARCH OVERLAY */
.search-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(5px); display: flex; align-items: center; z-index: 1001; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.search-overlay.active { opacity: 1; visibility: visible; }
.search-overlay-inner { display: flex; align-items: center; width: 100%; justify-content: center; position: relative; }
.header-search-form { display: flex; align-items: center; width: 100%; max-width: 600px; border-bottom: 2px solid var(--dark); padding-bottom: 5px; }
.search-field { border: none; background: transparent; width: 100%; font-size: 20px; font-family: 'Cormorant Garamond', serif; color: var(--dark); padding: 10px; outline: none; }
.search-field::placeholder { color: var(--muted); }
.search-submit { background: transparent; color: var(--dark); padding: 10px; border: none; cursor: pointer; transition: color 0.3s; }
.search-submit:hover { background: transparent; color: #222222; }
.close-search { position: absolute; right: 0; background: transparent; color: var(--dark); font-size: 36px; border: none; cursor: pointer; transition: color 0.3s; line-height: 1; padding: 0 10px; }
.close-search:hover { background: transparent; color: var(--vivid-red, #cf2e2e); }

/* SHOPIFY STYLE CHECKOUT */
.woocommerce-checkout form.checkout { display: flex; flex-wrap: wrap; justify-content: space-between; }
.woocommerce-checkout #customer_details { width: 53%; }
.woocommerce-checkout #order_review_heading, .woocommerce-checkout #order_review { width: 42%; }
.woocommerce-checkout #order_review_heading { display: none; }
.woocommerce-checkout #order_review { background-color: #222222; color: #ffffff; padding: 35px 30px; border-radius: 8px; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.woocommerce-checkout #order_review table.shop_table th, .woocommerce-checkout #order_review table.shop_table td { color: #ffffff; border-color: rgba(255, 255, 255, 0.15); padding: 15px 0; }
.woocommerce-checkout #order_review table.shop_table tfoot th, .woocommerce-checkout #order_review table.shop_table tfoot td { color: #ffffff; font-weight: 600; }
.woocommerce-checkout #order_review .payment_methods { background-color: rgba(255, 255, 255, 0.05) !important; border-radius: 6px; padding: 15px; border: 1px solid rgba(255, 255, 255, 0.1); }
.woocommerce-checkout #order_review .payment_box { background-color: rgba(0, 0, 0, 0.15) !important; color: #eeeeee !important; border-radius: 4px; }
.woocommerce-checkout #order_review .payment_box::before { border-bottom-color: rgba(0, 0, 0, 0.15) !important; }
.woocommerce-checkout #place_order { background-color: #ffffff; color: #222222; width: 100%; padding: 18px; font-size: 15px; font-weight: 600; border-radius: 4px; text-transform: uppercase; letter-spacing: 1.5px; margin-top: 20px; transition: all 0.3s ease; }
.woocommerce-checkout #place_order:hover { background-color: var(--cream); color: var(--dark); }
.woocommerce-checkout .form-row input.input-text, .woocommerce-checkout .form-row select, .woocommerce-checkout .form-row textarea { width: 100%; padding: 14px 16px; border: 1px solid #e0e0e0; border-radius: 4px; background-color: #ffffff; color: var(--dark); font-size: 14px; transition: all 0.3s ease; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.woocommerce-checkout .form-row input.input-text:focus, .woocommerce-checkout .form-row select:focus, .woocommerce-checkout .form-row textarea:focus { border-color: #222222; outline: none; box-shadow: 0 0 0 1px #222222; }
.woocommerce-checkout .form-row label { font-size: 13px; color: var(--text); margin-bottom: 6px; display: block; font-weight: 500; }
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info { background-color: var(--cream); border-top: 3px solid #222222; color: var(--dark); border-radius: 4px; }
@media (max-width: 991px) {
  .woocommerce-checkout form.checkout { flex-direction: column-reverse; }
  .woocommerce-checkout #customer_details, .woocommerce-checkout #order_review_heading, .woocommerce-checkout #order_review { width: 100%; }
  .woocommerce-checkout #order_review { margin-bottom: 40px; }
}

/* PREMIUM CART PAGE */
.woocommerce table.shop_table.cart { border: none; border-collapse: collapse; margin-bottom: 40px; }
.woocommerce table.shop_table.cart th { font-family: 'Inter', sans-serif; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); border: none; border-bottom: 2px solid var(--dark); padding: 16px 10px; text-align: left; }
.woocommerce table.shop_table.cart td { border: none; border-bottom: 1px solid var(--border); padding: 24px 10px; vertical-align: middle; }
.woocommerce table.cart .product-thumbnail img { width: 80px !important; height: auto !important; border-radius: 4px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.woocommerce table.cart .product-name a { font-size: 16px; font-weight: 500; color: var(--dark); transition: color 0.3s; }
.woocommerce table.cart .product-name a:hover { color: #222222; }
.woocommerce a.remove { color: #cf2e2e !important; font-weight: 300; font-size: 24px; transition: transform 0.3s; }
.woocommerce a.remove:hover { background: transparent !important; transform: scale(1.2); }
.woocommerce .quantity .qty { width: 65px; height: 42px; padding: 0 10px; border: 1px solid #e0e0e0; border-radius: 4px; font-family: 'Inter', sans-serif; font-size: 14px; color: var(--dark); }
.woocommerce table.cart td.actions { padding: 30px 10px; }
.woocommerce table.cart td.actions .coupon { display: flex; gap: 10px; align-items: center; }
.woocommerce table.cart td.actions .coupon .input-text { width: 220px; padding: 12px 16px; border: 1px solid #e0e0e0; border-radius: 4px; font-size: 14px; }
.woocommerce table.cart td.actions .button { background-color: var(--dark); color: #fff; border-radius: 4px; padding: 13px 24px; text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; }
.woocommerce table.cart td.actions .button:hover { background-color: #222222; }
.woocommerce table.cart td.actions .button:disabled { opacity: 0.5; cursor: not-allowed; }
.woocommerce .cart-collaterals .cart_totals { background: var(--cream); padding: 40px; border-radius: 8px; width: 100%; max-width: 450px; float: right; box-shadow: 0 10px 30px rgba(0,0,0,0.03); }
.woocommerce .cart-collaterals .cart_totals h2 { font-size: 32px; margin-bottom: 24px; border-bottom: 2px solid var(--dark); padding-bottom: 12px; }
.woocommerce .cart-collaterals .cart_totals table { width: 100%; border: none; }
.woocommerce .cart-collaterals .cart_totals table th, .woocommerce .cart-collaterals .cart_totals table td { border: none; border-bottom: 1px solid rgba(0,0,0,0.06); padding: 18px 0; color: var(--dark); }
.woocommerce .cart-collaterals .cart_totals table tr:last-child th, .woocommerce .cart-collaterals .cart_totals table tr:last-child td { border-bottom: none; }
.woocommerce .cart-collaterals .checkout-button { background-color: #222222 !important; color: #ffffff !important; border-radius: 4px !important; padding: 18px !important; font-size: 14px !important; font-weight: 600 !important; text-transform: uppercase; letter-spacing: 1.5px; width: 100%; text-align: center; display: block; margin-top: 24px; transition: all 0.3s ease !important; }
.woocommerce .cart-collaterals .checkout-button:hover { background-color: var(--dark) !important; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
@media (max-width: 768px) {
  .woocommerce table.cart td.actions .coupon { flex-direction: column; align-items: flex-start; width: 100%; }
  .woocommerce table.cart td.actions .coupon .input-text { width: 100%; }
  .woocommerce table.cart td.actions .button { width: 100%; margin-top: 10px; }
  .woocommerce .cart-collaterals .cart_totals { max-width: 100%; float: none; padding: 24px; }
}

/* NOTES / INGREDIENTS SECTION */
.notes-section { padding: 80px 0; background-color: #ffffff; text-align: center; }
.notes-title { font-family: 'Inter', sans-serif; font-size: 16px; color: var(--accent-dark); margin-bottom: 50px; font-weight: 600; letter-spacing: 1px; }
.notes-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-bottom: 50px; }
.note-item { text-decoration: none; color: var(--dark); display: block; transition: transform 0.3s ease; }
.note-img-wrap { position: relative; background-color: #ffffff; border-radius: 8px; padding: 20px; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; transition: background-color 0.3s ease; }
.note-img-wrap img { max-width: 100%; height: auto; object-fit: contain; mix-blend-mode: multiply; transition: transform 0.3s ease; }
.note-item h3 { font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; transition: color 0.3s ease; }
.note-item:hover .note-img-wrap { background-color: #2b5cbe; }
.note-item:hover .note-img-wrap img { transform: scale(1.08); }
.note-item:hover h3 { color: #2b5cbe; }
.notes-action { text-align: center; }
@media (max-width: 1024px) { .notes-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .notes-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; } .notes-title { font-size: 14px; margin-bottom: 30px; } }

/* ============================================================
   ROAIDA: Front-page Product Card hover image swap
   ============================================================ */
.product-card .product-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 16px;
  background: #f4f0ec;
}
.product-card .product-thumb img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0;
  display: block;
  transition: opacity .55s ease, transform 1.2s ease;
  will-change: opacity, transform;
}
.product-card .product-thumb .img-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
}
.product-card:hover .product-thumb .img-main,
.product-card .product-thumb:hover .img-main {
  opacity: 0;
  transform: scale(1.04);
}
.product-card:hover .product-thumb .img-hover,
.product-card .product-thumb:hover .img-hover {
  opacity: 1;
  transform: scale(1);
}
@media (max-width: 768px) {
  .product-card .product-thumb img { height: 280px; }
}

/* ============================================================
   ROAIDA: Brand Video section
   ============================================================ */
.video-section {
  width: 100%;
  background: #000;
  overflow: hidden;
  line-height: 0;
}
.video-section .brand-video {
  width: 100%;
  height: auto;
  max-height: 90vh;
  display: block;
  object-fit: cover;
}

/* ============================================================
   ROAIDA: Notes section light animation (aguaperfumes style)
   ============================================================ */
@keyframes roaida-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-6px) rotate(-1.5deg); }
}
@keyframes roaida-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}
.notes-grid .note-item:nth-child(1) .note-img-wrap img { animation: roaida-float    5.5s ease-in-out infinite; }
.notes-grid .note-item:nth-child(2) .note-img-wrap img { animation: roaida-breathe  6.2s ease-in-out infinite; }
.notes-grid .note-item:nth-child(3) .note-img-wrap img { animation: roaida-float    6.8s ease-in-out infinite reverse; }
.notes-grid .note-item:nth-child(4) .note-img-wrap img { animation: roaida-breathe  5.8s ease-in-out infinite; }
.notes-grid .note-item:nth-child(5) .note-img-wrap img { animation: roaida-float    6.4s ease-in-out infinite; }
.note-item:hover .note-img-wrap img {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .notes-grid .note-item .note-img-wrap img { animation: none !important; }
}

/* ====================================================
   ROAIDA SINGLE PRODUCT PAGE FIX
   ==================================================== */

/* Gallery layout */
.single-product div.product .woocommerce-product-gallery {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.single-product div.product .flex-control-thumbs {
    order: 1;
    width: 84px !important;
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    margin: 0 !important;
    padding: 0 !important;
}

.single-product div.product .flex-control-thumbs li {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    list-style: none !important;
}

/* Extra duplicate featured/front thumbnail hide */
.single-product div.product .flex-control-thumbs li:first-child {
    display: none !important;
}

/* Main image area */
.single-product div.product .flex-viewport,
.single-product div.product .woocommerce-product-gallery__wrapper {
    order: 2;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    position: relative;
}

.single-product div.product .woocommerce-product-gallery__image {
    background: #f4f4f4;
    min-height: 560px;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.single-product div.product .woocommerce-product-gallery__image a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 560px;
    width: 100%;
}

.single-product div.product .woocommerce-product-gallery__image img {
    max-width: 380px !important;
    max-height: 460px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    box-shadow: none !important;
}

/* Thumbnail image styling */
.single-product div.product .flex-control-thumbs img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
    border: 1px solid #eee;
    opacity: 1 !important;
}

/* Arrows */
.single-product .roaida-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 0;
    background: #ffffff;
    color: #111;
    font-size: 24px;
    line-height: 42px;
    text-align: center;
    cursor: pointer;
    z-index: 9;
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
    border-radius: 2px;
}

.single-product .roaida-gallery-prev {
    left: 12px;
}

.single-product .roaida-gallery-next {
    right: 12px;
}

/* Buy now button */
.single-product .roaida-buy-now {
    width: 100%;
    margin-top: 12px !important;
    min-height: 52px;
    background: #fff !important;
    color: #111 !important;
    border: 1px solid #111 !important;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: .5px;
}

/* Agar existing plugin ka buy-now button ho to hide */
.single-product .shopengine_buy_now_button,
.single-product .xoo-wsc-buy-now,
.single-product .wc-buy-now-btn,
.single-product button[name="buy-now"] {
    display: none !important;
}

/* Qty + add to cart alignment thora clean */
.single-product form.cart {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
}

.single-product form.cart .quantity {
    min-width: 90px;
}

.single-product form.cart .single_add_to_cart_button {
    flex: 1;
    min-height: 52px;
}

/* Mobile */
@media (max-width: 768px) {
    .single-product div.product .woocommerce-product-gallery {
        flex-direction: column;
    }

    .single-product div.product .flex-control-thumbs {
        width: 100% !important;
        flex-direction: row;
        order: 2;
    }

    .single-product div.product .flex-viewport,
    .single-product div.product .woocommerce-product-gallery__wrapper {
        order: 1;
        max-width: 100%;
    }

    .single-product div.product .woocommerce-product-gallery__image,
    .single-product div.product .woocommerce-product-gallery__image a {
        min-height: 420px;
    }

    .single-product div.product .woocommerce-product-gallery__image img {
        max-width: 280px !important;
        max-height: 360px !important;
    }
}