/* ==========================================================================
   Studio77 Main Stylesheet (Modern Minimalist Tinted Product Boxes & Single Product)
   ========================================================================== */

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #ffffff; /* Clean white canvas making cards pop */
  color: #1f2937;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #a32513;
  text-decoration: none;
}

.s77-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .s77-container {
    padding: 0 0.85rem;
  }
}

/* SPA Loading Progress Indicator */
#s77-spa-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #feb414, #a32513);
  box-shadow: 0 0 12px #feb414;
  z-index: 9999;
  width: 0%;
  transition: width 0.2s ease, opacity 0.4s ease;
  pointer-events: none;
}

/* Page Transition Container */
#s77-spa-content {
  opacity: 1;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#s77-spa-content.spa-loading {
  opacity: 0.6;
  transform: translateY(4px);
}

/* Section Header & Page Titles (Centered) */
.s77-section-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 2rem auto 2rem auto;
  gap: 0.5rem;
}

.s77-section-title,
.woocommerce-products-header__title,
.page-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  position: relative;
  display: table !important;
  margin: 0 auto 1.5rem auto !important;
  text-align: center !important;
  letter-spacing: -0.5px;
}

.s77-section-title::after,
.woocommerce-products-header__title::after,
.page-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3.5px;
  background: linear-gradient(90deg, #a32513, #feb414);
  border-radius: 4px;
}

.s77-section-subtitle {
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
}

@media (max-width: 768px) {
  .s77-section-title,
  .woocommerce-products-header__title,
  .page-title {
    font-size: 1.45rem;
  }
  .s77-section-subtitle {
    font-size: 0.85rem;
  }
}

/* Visual Category Quick Filter */
.s77-cat-pills {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.5rem 0 1rem 0;
  margin-bottom: 1.5rem;
  scrollbar-width: none;
}

.s77-cat-pills::-webkit-scrollbar {
  display: none;
}

.s77-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  background: #f1f2f4;
  border: 1px solid transparent;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.s77-cat-pill:hover, .s77-cat-pill.active {
  background: #a32513;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(163, 37, 19, 0.25), 0 0 10px rgba(254, 180, 20, 0.2);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .s77-cat-pill {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   Catalog Toolbar & Sorting Dropdown (Sortează după...)
   ========================================================================== */
.woocommerce-result-count {
  float: left !important;
  margin: 0 !important;
  padding: 10px 0 !important;
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  color: #64748b !important;
  line-height: 1.5 !important;
}

.woocommerce-ordering {
  float: right !important;
  margin: 0 0 1.75rem 0 !important;
  display: inline-block !important;
}

.woocommerce .woocommerce-ordering select.orderby,
.woocommerce-ordering select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-color: #ffffff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a32513' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 14px !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 9px 38px 9px 16px !important;
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  outline: none !important;
  max-width: 100% !important;
}

.woocommerce .woocommerce-ordering select.orderby:hover,
.woocommerce-ordering select:hover {
  border-color: #feb414 !important;
  color: #a32513 !important;
  box-shadow: 0 4px 14px rgba(254, 180, 20, 0.2) !important;
  transform: translateY(-1px) !important;
}

.woocommerce .woocommerce-ordering select.orderby:focus,
.woocommerce-ordering select:focus {
  border-color: #a32513 !important;
  box-shadow: 0 0 0 3px rgba(163, 37, 19, 0.15) !important;
  color: #a32513 !important;
}

.woocommerce::after,
.woocommerce-page::after {
  content: "" !important;
  display: table !important;
  clear: both !important;
}

@media (max-width: 768px) {
  .woocommerce-result-count {
    float: none !important;
    display: block !important;
    margin-bottom: 0.6rem !important;
    font-size: 0.85rem !important;
    text-align: left !important;
    padding: 0 !important;
  }

  .woocommerce-ordering {
    float: none !important;
    display: block !important;
    width: 100% !important;
    margin-bottom: 1.5rem !important;
  }

  .woocommerce .woocommerce-ordering select.orderby,
  .woocommerce-ordering select {
    width: 100% !important;
    padding: 10px 38px 10px 14px !important;
    font-size: 0.88rem !important;
  }
}

/* ==========================================================================
   Tinted Modern Product Cards Grid
   Always 2 Columns on Mobile / Portable Devices
   ========================================================================== */
.s77-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (max-width: 1024px) {
  .s77-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .s77-product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.85rem !important;
    margin-bottom: 2.5rem;
  }
}

/* Modern Tinted Product Box (.s77-card) */
.s77-card {
  background-color: #ededf0;
  border: 1.5px solid #cbd5e1;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.s77-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  background: linear-gradient(135deg, #a32513 0%, #831c0e 100%);
  color: #feb414;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(163, 37, 19, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.2px;
  pointer-events: none;
  border: 1px solid rgba(254, 180, 20, 0.3);
}

@media (max-width: 768px) {
  .s77-card-badge {
    top: 8px;
    left: 8px;
    font-size: 0.68rem;
    padding: 3px 8px;
  }
}

.s77-card:hover {
  background-color: #e4e5e9;
  border-color: rgba(254, 180, 20, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.07), 0 0 16px rgba(254, 180, 20, 0.2);
}

.s77-card-inner {
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

@media (max-width: 768px) {
  .s77-card {
    border-radius: 14px;
  }
  .s77-card-inner {
    padding: 1rem 0.85rem 0.65rem 0.85rem;
  }
}

/* Card Image Area */
.s77-card-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 1.25rem;
  border-radius: 12px;
}

.s77-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.s77-card:hover .s77-card-img-wrap img {
  transform: scale(1.04);
}

@media (max-width: 768px) {
  .s77-card-img-wrap {
    margin-bottom: 0.75rem;
    border-radius: 9px;
  }
  .s77-card-img-wrap img {
    border-radius: 9px;
  }
}

/* Card Content Body: Title on Left, Price on Right (Same Row) */
.s77-card-body {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex-grow: 1;
}

.s77-card-info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
  width: 100%;
}

.s77-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #18181b;
  margin: 0;
  line-height: 1.35;
  text-align: left;
  flex-grow: 1;
}

.s77-card-title a {
  color: inherit;
  transition: color 0.2s ease;
}

.s77-card:hover .s77-card-title a {
  color: #a32513;
}

/* Price Display on Right */
.s77-card-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: #a32513;
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 4px;
  text-align: right;
  white-space: nowrap;
}

.s77-card-price del {
  color: #a1a1aa;
  font-size: 0.88rem;
  font-weight: 500;
}

.s77-card-price ins {
  text-decoration: none;
  color: #a32513;
}

/* Category Subtitle */
.s77-card-cat {
  font-size: 0.82rem;
  color: #71717a;
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-align: left;
}

@media (max-width: 768px) {
  .s77-card-title {
    font-size: 0.92rem;
  }
  .s77-card-price {
    font-size: 1rem;
  }
  .s77-card-cat {
    font-size: 0.75rem;
  }
}

/* Full Width Button spanning the ENTIRE width of the card box */
.s77-card-btn {
  width: 100%;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background-color: #18181b;
  color: #ffffff;
  padding: 0.95rem 1.5rem;
  border-radius: 0 0 17px 17px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.s77-card-btn svg {
  transition: transform 0.25s ease;
}

.s77-card-btn:hover {
  background-color: #a32513;
  color: #ffffff;
  box-shadow: 0 -4px 16px rgba(163, 37, 19, 0.3), 0 0 12px rgba(254, 180, 20, 0.2);
}

.s77-card-btn:hover svg {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .s77-card-btn {
    padding: 0.75rem 0.75rem;
    font-size: 0.86rem;
    border-radius: 0 0 13px 13px;
    gap: 0.4rem;
  }
  .s77-card-btn svg {
    width: 14px;
    height: 14px;
  }
}

/* ==========================================================================
   WooCommerce Standard Loop (Magazin / Shop / Category / Archive Pages)
   Same Row: Title on Left, Price on Right
   ========================================================================== */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after,
ul.products::before,
ul.products::after {
  display: none !important;
  content: none !important;
}

.woocommerce ul.products,
ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2rem !important;
  margin: 2rem 0 4rem 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

@media (max-width: 1024px) {
  .woocommerce ul.products,
  ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem !important;
  }
}

@media (max-width: 768px) {
  .woocommerce ul.products,
  ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.85rem !important;
    margin: 1.5rem 0 2.5rem 0 !important;
  }
}

.woocommerce ul.products li.product,
ul.products li.product {
  background-color: #ededf0 !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 18px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  width: 100% !important;
}

.woocommerce ul.products li.product:hover,
ul.products li.product:hover {
  background-color: #e4e5e9 !important;
  border-color: rgba(254, 180, 20, 0.4) !important;
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.07), 0 0 16px rgba(254, 180, 20, 0.2) !important;
}

/* Loop Link: Flex column container for Image -> Title -> Price */
.woocommerce ul.products li.product .woocommerce-LoopProduct-link,
ul.products li.product .woocommerce-LoopProduct-link {
  display: flex !important;
  flex-direction: column !important;
  padding: 1.25rem 1.25rem 0.85rem 1.25rem !important;
  text-decoration: none !important;
  flex-grow: 1 !important;
  color: inherit !important;
  margin: 0 !important;
}

.woocommerce ul.products li.product img,
ul.products li.product img {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  margin: 0 0 0.85rem 0 !important;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: block !important;
}

.woocommerce ul.products li.product:hover img,
ul.products li.product:hover img {
  transform: scale(1.04) !important;
}

/* Title: Full Width Spanning 1 or 2 Lines */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .woocommerce-loop-product__title {
  width: 100% !important;
  font-size: 1.02rem !important;
  font-weight: 700 !important;
  color: #18181b !important;
  margin: 0 0 0.45rem 0 !important;
  line-height: 1.35 !important;
  text-align: left !important;
  padding: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 2.7em !important;
  transition: color 0.2s ease !important;
}

.woocommerce ul.products li.product:hover .woocommerce-loop-product__title,
ul.products li.product:hover .woocommerce-loop-product__title {
  color: #a32513 !important;
}

/* Price: Below Title on a Single Row (Old Price Left, New Price Right) */
.woocommerce ul.products li.product .price,
ul.products li.product .price {
  width: 100% !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: #a32513 !important;
  margin: auto 0 0 0 !important;
  padding: 0.25rem 0 0 0 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 6px !important;
  line-height: 1.2 !important;
}

/* Left Column: Old Price (Crossed Out) */
.woocommerce ul.products li.product .price del,
ul.products li.product .price del {
  color: #94a3b8 !important;
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  text-decoration: line-through !important;
  display: inline-flex !important;
  align-items: baseline !important;
  order: 1 !important;
  margin-right: auto !important;
}

/* Right Column: New Updated / Discounted Price */
.woocommerce ul.products li.product .price ins,
ul.products li.product .price ins {
  text-decoration: none !important;
  color: #a32513 !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: baseline !important;
  order: 2 !important;
  margin-left: auto !important;
}

/* Fallback for regular price (when not discounted) */
.woocommerce ul.products li.product .price > .woocommerce-Price-amount,
.woocommerce ul.products li.product .price > .amount {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: #a32513 !important;
  margin-left: auto !important;
}

/* Full Width Button Spanning ENTIRE Bottom Width in WooCommerce Loop */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button,
ul.products li.product .button,
ul.products li.product a.button,
ul.products li.product .added_to_cart {
  width: 100% !important;
  margin: auto 0 0 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.6rem !important;
  background-color: #18181b !important;
  color: #ffffff !important;
  padding: 0.95rem 1.5rem !important;
  border-radius: 0 0 17px 17px !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.3px !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: none !important;
  cursor: pointer !important;
  text-align: center !important;
  text-decoration: none !important;
  box-shadow: none !important;
  line-height: normal !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product a.button:hover,
ul.products li.product .button:hover,
ul.products li.product a.button:hover {
  background-color: #a32513 !important;
  color: #ffffff !important;
  box-shadow: 0 -4px 16px rgba(163, 37, 19, 0.3), 0 0 12px rgba(254, 180, 20, 0.2) !important;
}

@media (max-width: 768px) {
  .woocommerce ul.products li.product,
  ul.products li.product {
    border-radius: 14px !important;
  }
  .woocommerce ul.products li.product .woocommerce-LoopProduct-link,
  ul.products li.product .woocommerce-LoopProduct-link {
    padding: 0.85rem 0.75rem 0.55rem 0.75rem !important;
  }
  .woocommerce ul.products li.product img,
  ul.products li.product img {
    margin: 0 0 0.55rem 0 !important;
    border-radius: 9px !important;
  }
  .woocommerce ul.products li.product .woocommerce-loop-product__title,
  ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.88rem !important;
    line-height: 1.3 !important;
    min-height: 2.6em !important;
    margin-bottom: 0.35rem !important;
  }
  .woocommerce ul.products li.product .price,
  ul.products li.product .price {
    font-size: 1.02rem !important;
    gap: 4px !important;
  }
  .woocommerce ul.products li.product .price del,
  ul.products li.product .price del {
    font-size: 0.80rem !important;
  }
  .woocommerce ul.products li.product .price ins,
  ul.products li.product .price ins,
  .woocommerce ul.products li.product .price > .woocommerce-Price-amount,
  .woocommerce ul.products li.product .price > .amount {
    font-size: 1.02rem !important;
  }
  .woocommerce ul.products li.product .button,
  .woocommerce ul.products li.product a.button,
  ul.products li.product .button,
  ul.products li.product a.button,
  ul.products li.product .added_to_cart {
    padding: 0.75rem 0.75rem !important;
    font-size: 0.86rem !important;
    border-radius: 0 0 13px 13px !important;
    gap: 0.4rem !important;
  }
}

/* ==========================================================================
   Single Product Page Modern 2-Column Layout (Title on Left, Price on Right)
   ========================================================================== */
/* ==========================================================================
   Single Product Page Modern Layout: 1/3 (Gallery) vs 2/3 (Details) on Row 1
   Row 2: Full Width Uploaded Photos Grid (4 Cols PC / 2 Cols Mobile)
   ========================================================================== */
.woocommerce div.product,
.s77-single-product-container div.product,
div.product.type-product {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) !important;
  grid-template-rows: auto 1fr auto !important;
  gap: 1.25rem 3rem !important;
  align-items: stretch !important;
  background: #ffffff !important;
  border-radius: 20px !important;
  padding: 2.5rem !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.04) !important;
  border: 1px solid #f0f0f2 !important;
}

@media (max-width: 900px) {
  .woocommerce div.product,
  .s77-single-product-container div.product,
  div.product.type-product {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    gap: 1.5rem !important;
    padding: 1.25rem !important;
    align-items: start !important;
  }
}

/* Product Gallery (Left 1/3 on Desktop - Spans Rows 1 & 2 to match exact height of right panel) */
.woocommerce div.product div.images.woocommerce-product-gallery,
.woocommerce div.product div.images,
.woocommerce-product-gallery,
.s77-single-product-container .woocommerce-product-gallery,
.s77-single-product-container div.images {
  grid-column: 1 / 2 !important;
  grid-row: 1 / 3 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 380px !important;
  float: none !important;
  margin: 0 !important;
  background-color: #ededf0 !important;
  border-radius: 18px !important;
  padding: 1.5rem !important;
  border: 1px solid #e2e4e8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative !important;
  box-sizing: border-box !important;
}

.woocommerce div.product div.images img,
.woocommerce-product-gallery__image img,
.s77-single-product-container .woocommerce-product-gallery img {
  width: 100% !important;
  height: auto !important;
  max-height: 520px !important;
  object-fit: contain !important;
  border-radius: 12px !important;
  display: block !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
}

/* Allow children of summary and form to participate directly in the product grid */
.woocommerce div.product div.summary.entry-summary,
.woocommerce div.product form.cart,
.s77-single-product-container div.summary.entry-summary,
.s77-single-product-container form.cart {
  display: contents !important;
}

/* Product Info Panel (Right 2/3 on Desktop - Top Row) */
.s77-product-info-panel {
  grid-column: 2 / 3 !important;
  grid-row: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: auto !important;
  box-sizing: border-box !important;
}

/* Hide WooCommerce Product Meta (Categorie, Etichete) */
.woocommerce div.product .product_meta,
.s77-single-product-container .product_meta {
  display: none !important;
}

@media (max-width: 900px) {
  .woocommerce div.product,
  .s77-single-product-container div.product,
  div.product.type-product {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    gap: 1.25rem !important;
    padding: 1.25rem !important;
    align-items: start !important;
  }

  .woocommerce div.product div.images.woocommerce-product-gallery,
  .woocommerce div.product div.images,
  .woocommerce-product-gallery,
  .s77-single-product-container .woocommerce-product-gallery,
  .s77-single-product-container div.images {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    order: 1 !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .s77-product-info-panel {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    order: 2 !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .upload-post-hide,
  .s77-single-product-container .upload-post-hide,
  .woocommerce div.product .upload-post-hide {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    order: 3 !important;
    height: auto !important;
    margin: 0.25rem 0 0 0 !important;
  }

  #upload-processing,
  .s77-single-product-container #upload-processing {
    grid-column: 1 / -1 !important;
    grid-row: 4 !important;
    order: 4 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
    margin: 1.25rem 0 0 0 !important;
    padding-top: 1.25rem !important;
  }
}

/* Title on Left, Price on Right Header */
.s77-title-price-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: baseline !important;
  gap: 1.5rem !important;
  margin-bottom: 0.75rem !important;
  width: 100% !important;
}

.s77-title-price-header .product_title,
.woocommerce div.product .product_title {
  font-size: 2.1rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 !important;
  letter-spacing: -0.5px !important;
  line-height: 1.25 !important;
  text-align: left !important;
  flex-grow: 1 !important;
}

.s77-title-price-header p.price,
.woocommerce div.product p.price {
  font-size: 1.75rem !important;
  font-weight: 800 !important;
  color: #a32513 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: baseline !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  text-align: right !important;
  white-space: nowrap !important;
}

.s77-title-price-header p.price del,
.woocommerce div.product p.price del {
  color: #94a3b8 !important;
  font-size: 1.15rem !important;
}

.woocommerce div.product .woocommerce-product-details__short-description {
  font-size: 1rem !important;
  color: #334155 !important;
  line-height: 1.7 !important;
  padding: 0 !important;
  border-left: none !important;
  width: 100% !important;
}

/* ==========================================================================
   Modern Product Description Dropdown (Closed by default)
   ========================================================================= */
.s77-desc-dropdown {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  overflow: hidden;
  margin: 0.35rem 0 0 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: all 0.25s ease;
}

.s77-desc-dropdown[open] {
  border-color: #94a3b8;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.s77-desc-summary {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 18px !important;
  cursor: pointer !important;
  list-style: none !important;
  background-color: #ffffff;
  user-select: none;
  font-weight: 700;
  color: #1e293b;
  font-size: 1rem;
  letter-spacing: -0.2px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.s77-desc-summary::-webkit-details-marker {
  display: none !important;
}

.s77-desc-summary:hover {
  background-color: #f8fafc;
  color: #a32513;
}

.s77-desc-chevron {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #64748b;
}

.s77-desc-dropdown[open] .s77-desc-chevron {
  transform: rotate(180deg);
  color: #a32513;
}

.s77-desc-content {
  padding: 16px 18px;
  background: #ffffff;
  border-top: 1.5px solid #cbd5e1;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ==========================================================================
   Modern Photo Upload Dropzone Box (Încarcă Poze)
   ========================================================================== */
.upload-post-hide,
.s77-single-product-container .upload-post-hide,
.woocommerce div.product .upload-post-hide {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  display: block !important;
}

.upload-post-hide .container-fluid,
.upload-post-hide .row,
.upload-post-hide .col-sm-12,
.s77-single-product-container .upload-post-hide .container-fluid,
.s77-single-product-container .upload-post-hide .row,
.s77-single-product-container .upload-post-hide .col-sm-12 {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

@media (min-width: 901px) {
  .upload-post-hide,
  .s77-single-product-container .upload-post-hide,
  .woocommerce div.product .upload-post-hide {
    grid-column: 2 / 3 !important;
    grid-row: 2 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    flex-grow: 1 !important;
  }

  .upload-post-hide .container-fluid,
  .upload-post-hide .row,
  .upload-post-hide .col-sm-12,
  .s77-single-product-container .upload-post-hide .container-fluid,
  .s77-single-product-container .upload-post-hide .row,
  .s77-single-product-container .upload-post-hide .col-sm-12 {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    height: 100% !important;
  }

  .upload-box.s77-modern-upload-box,
  .woocommerce div.product .upload-box {
    flex-grow: 1 !important;
    height: 100% !important;
    min-height: 200px !important;
  }

  .s77-modern-upload-box .upload-input,
  .s77-modern-upload-box .s77-upload-label {
    flex-grow: 1 !important;
    height: 100% !important;
  }
}

.upload-box.s77-modern-upload-box,
.woocommerce div.product .upload-box {
  background: #f8fafc !important;
  border: 2px dashed #cbd5e1 !important;
  border-radius: 16px !important;
  padding: 2rem 1.25rem !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.upload-box.s77-modern-upload-box:hover,
.woocommerce div.product .upload-box:hover,
.is-dragover .upload-box.s77-modern-upload-box {
  border-color: #a32513 !important;
  background: #fff8f8 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(163, 37, 19, 0.08);
}

.s77-modern-upload-box .upload-input {
  padding: 0 !important;
  width: 100% !important;
}

.s77-modern-upload-box .inputfile {
  width: 0.1px !important;
  height: 0.1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  z-index: -1 !important;
  pointer-events: none !important;
}

.s77-modern-upload-box .s77-upload-label {
  cursor: pointer !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.s77-upload-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fee2e2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
  transition: transform 0.25s ease, background 0.25s ease;
}

.upload-box.s77-modern-upload-box:hover .s77-upload-icon-wrap {
  transform: scale(1.08);
  background: #fecaca;
}

.s77-upload-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.25rem;
  letter-spacing: -0.3px;
}

.s77-upload-subtitle {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0 0 1rem 0 !important;
  max-width: 380px;
  line-height: 1.45;
  text-align: center;
}

.s77-upload-btn-fake {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #a32513;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.55rem 1.4rem;
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(163, 37, 19, 0.25);
  pointer-events: none;
  transition: all 0.25s ease;
}

@media (hover: hover) {
  .upload-box.s77-modern-upload-box:hover .s77-upload-btn-fake {
    background: #8c1e0e;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(163, 37, 19, 0.35);
  }
}

.s77-upload-btn-fake:active {
  transform: scale(0.97);
  opacity: 0.9;
}

/* ==========================================================================
   Full Width Uploaded Photos Grid (4 Columns on PC / 2 Columns on Mobile)
   ========================================================================== */
#upload-processing,
.s77-single-product-container #upload-processing {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  display: grid !important;
  gap: 1.25rem !important;
  margin: 1.5rem 0 0 0 !important;
  padding-top: 1.5rem !important;
  border-top: 1px solid #e2e8f0 !important;
}

@media (min-width: 901px) {
  #upload-processing,
  .s77-single-product-container #upload-processing {
    grid-row: 3 !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  #upload-processing,
  .s77-single-product-container #upload-processing {
    grid-row: 4 !important;
    order: 4 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
    margin: 1.25rem 0 0 0 !important;
    padding-top: 1.25rem !important;
  }
}

/* Individual Uploaded Photo Card - Identical Fixed Dimensions */
.upload-file.s77-upload-card,
.upload-file {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 0.85rem !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  transition: all 0.25s ease !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

@media (hover: hover) {
  .upload-file:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08) !important;
    border-color: #cbd5e1 !important;
  }
}

/* Thumbnail Preview Box - Perfectly Identical Square */
.s77-upload-card-thumb {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #f8fafc !important;
  position: relative !important;
  margin-bottom: 0.65rem !important;
  border: 1px solid #e2e8f0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.s77-upload-card-thumb .thumb {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.s77-upload-card-thumb .thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* Upload Spinner (During Initial File Upload) */
.upload-file.is-preview-loading .s77-upload-card-thumb .thumb img,
.upload-file.in-progress .s77-upload-card-thumb .thumb img,
.s77-upload-card-thumb .thumb img[src*="ajax-loader.gif"] {
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  object-fit: contain !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border-radius: 50% !important;
  padding: 8px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18) !important;
  box-sizing: border-box !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 20 !important;
}

/* Upload Progress Bar Overlay */
.upload-file .upload-post-pending {
  position: absolute !important;
  bottom: 8px !important;
  left: 8px !important;
  right: 8px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(4px) !important;
  padding: 5px 8px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  z-index: 25 !important;
  box-sizing: border-box !important;
}

.upload-file .upload-post-pending .upload-status {
  display: block !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  color: #475569 !important;
  text-align: center !important;
  margin-bottom: 4px !important;
  line-height: 1.2 !important;
}

.upload-file .upload-post-pending .progress {
  height: 4px !important;
  background: #e2e8f0 !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.upload-file .upload-post-pending .progress-bar {
  background: #a32513 !important;
  height: 100% !important;
  border-radius: 999px !important;
  transition: width 0.2s ease !important;
}

/* Centered Loader Overlay over Photo Thumbnail (Quantity Update) */
.s77-upload-card-thumb .woo-quick-loader,
.thumb .woo-quick-loader,
.woo-quick-loader {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 30 !important;
  width: 44px !important;
  height: 44px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border-radius: 50% !important;
  padding: 8px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18) !important;
  box-sizing: border-box !important;
  pointer-events: none !important;
}

/* Filename Area - Exactly 2 lines height reserved */
.s77-upload-card-title-wrap {
  height: 2.8em !important;
  line-height: 1.4em !important;
  overflow: hidden !important;
  margin-bottom: 0.65rem !important;
  display: block !important;
  width: 100% !important;
}

.s77-upload-card-title-wrap .upload-title {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  line-height: 1.4em !important;
  word-break: break-all !important;
  margin: 0 !important;
  width: 100% !important;
}

/* Card Bottom Row: Stepper spans 100% width centered */
.s77-upload-card-footer,
.upload-file .upload-post-processed {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  margin-top: auto !important;
  padding-top: 0.45rem !important;
  border-top: none !important;
  box-sizing: border-box !important;
}

.s77-card-stepper {
  display: grid !important;
  grid-template-columns: 32px 1fr 32px !important;
  align-items: center !important;
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  height: 32px !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 auto !important;
}

.s77-qty-btn {
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  background: #f1f5f9 !important;
  border: none !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #334155 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  user-select: none !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
}

.s77-qty-minus {
  border-right: 1px solid #cbd5e1 !important;
}

.s77-qty-plus {
  border-left: 1px solid #cbd5e1 !important;
}

.s77-qty-btn:hover {
  background: #e2e8f0 !important;
  color: #a32513 !important;
}

.s77-card-stepper .woo-upload-quantity {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 32px !important;
  border: none !important;
  background: #ffffff !important;
  text-align: center !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  -moz-appearance: textfield !important;
}

.s77-card-stepper .woo-upload-quantity::-webkit-outer-spin-button,
.s77-card-stepper .woo-upload-quantity::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

/* Always Keep Upload Dropzone Box Visible */
.s77-product-info-panel .upload-post-hide,
.woocommerce div.product .upload-post-hide,
.upload-post-hide {
  display: block !important;
}

/* Red Delete Button X - Always in Top-Right Corner of Photo Card at 4px */
.upload-file.s77-upload-card,
.upload-file {
  position: relative !important;
}

.upload-file .upload-delete.s77-btn-delete,
.upload-file .upload-delete {
  position: absolute !important;
  top: 4px !important;
  right: 4px !important;
  z-index: 10 !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px !important;
  background: #fee2e2 !important;
  color: #ef4444 !important;
  border: 1px solid #fca5a5 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  text-decoration: none !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.upload-file .upload-delete.s77-btn-delete:hover,
.upload-file .upload-delete:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
  transform: scale(1.08) !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35) !important;
}

/* Mobile & Tablet Styles for Upload Cards */
@media (max-width: 768px) {
  .upload-file.s77-upload-card {
    position: relative !important;
    padding: 0.65rem !important;
    box-sizing: border-box !important;
  }

  /* Quantity Stepper spans full width and is centered */
  .s77-upload-card-footer,
  .upload-file .upload-post-processed {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    padding-top: 0.5rem !important;
    box-sizing: border-box !important;
  }

  .s77-card-stepper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: 32px 1fr 32px !important;
    align-items: center !important;
    height: 32px !important;
    overflow: hidden !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background: #f1f5f9 !important;
    padding: 0 !important;
    margin: 0 auto !important;
  }

  .s77-card-stepper .s77-qty-btn {
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    background: #f1f5f9 !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #334155 !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
  }

  .s77-card-stepper .s77-qty-minus {
    border-right: 1px solid #cbd5e1 !important;
  }

  .s77-card-stepper .s77-qty-plus {
    border-left: 1px solid #cbd5e1 !important;
  }

  .s77-card-stepper .woo-upload-quantity {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 32px !important;
    box-sizing: border-box !important;
    border: none !important;
    background: #ffffff !important;
    text-align: center !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    padding: 0 !important;
    margin: 0 !important;
    -moz-appearance: textfield !important;
  }

  /* Red X Delete Button positioned in top-right corner with 4px margin */
  .upload-file .upload-delete.s77-btn-delete,
  .upload-file .upload-delete {
    position: absolute !important;
    top: 4px !important;
    right: 4px !important;
    z-index: 10 !important;
    width: 30px !important;
    height: 30px !important;
    margin: 0 !important;
    display: inline-flex !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  }
}

#upload-processing .upload-file:after {
  display: none !important;
  content: none !important;
}

/* ==========================================================================
   Studio77 Custom In-App Confirmation Modal
   ========================================================================== */
.s77-modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
}

.s77-modal-dialog {
  background: #ffffff;
  border-radius: 20px;
  max-width: 380px;
  width: 90%;
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: s77-modal-pop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
}

@keyframes s77-modal-pop {
  from { opacity: 0; transform: translate(-50%, -46%) scale(0.95); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.s77-modal-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fee2e2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
}

.s77-modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.3px;
}

.s77-modal-desc {
  font-size: 0.95rem;
  color: #64748b;
  margin: 0 0 1.5rem 0;
  line-height: 1.5;
}

.s77-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.s77-modal-btn-cancel {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.s77-modal-btn-cancel:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.s77-modal-btn-confirm {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: #ef4444;
  color: #ffffff;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
  transition: all 0.2s ease;
}

.s77-modal-btn-confirm:hover {
  background: #dc2626;
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
}

/* ==========================================================================
   Add to Cart Card inside Upload Processing Grid
   ========================================================================== */
.s77-cart-actions {
  display: none !important;
}

/* Explicit rule: Hide Add to Cart card if no photos have been uploaded yet */
#upload-processing:not(:has(.upload-file)) .s77-add-to-cart-card,
#upload-processing .s77-add-to-cart-card:only-child,
.single_add_to_cart_button.s77-add-to-cart-card.is-hidden {
  display: none !important;
}

.single_add_to_cart_button.s77-add-to-cart-card {
  background-color: #a32513 !important;
  color: #ffffff !important;
  border: 1px solid #8c1e0e !important;
  border-radius: 16px !important;
  padding: 1.25rem 0.85rem !important;
  box-shadow: 0 4px 14px rgba(163, 37, 19, 0.25) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  min-height: 250px !important;
  margin: 0 !important;
  text-decoration: none !important;
}

@media (max-width: 768px) {
  .single_add_to_cart_button.s77-add-to-cart-card {
    min-height: 210px !important;
    padding: 1rem 0.65rem !important;
  }
}

.s77-add-to-cart-card-inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1.1rem !important;
  width: 100% !important;
}

.s77-add-to-cart-icon {
  width: 64px !important;
  height: 64px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.18) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  transition: transform 0.25s ease, background 0.25s ease !important;
}

@media (max-width: 768px) {
  .s77-add-to-cart-icon {
    width: 52px !important;
    height: 52px !important;
  }
  .s77-add-to-cart-icon svg {
    width: 28px !important;
    height: 28px !important;
  }
}

.s77-add-to-cart-label {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: -0.2px !important;
  line-height: 1.3 !important;
  text-align: center !important;
}

@media (max-width: 768px) {
  .s77-add-to-cart-label {
    font-size: 1rem !important;
  }
}

@media (hover: hover) {
  .single_add_to_cart_button.s77-add-to-cart-card:hover {
    background-color: #8c1e0e !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 24px rgba(163, 37, 19, 0.38) !important;
    border-color: #781809 !important;
  }
  .single_add_to_cart_button.s77-add-to-cart-card:hover .s77-add-to-cart-icon {
    transform: scale(1.1) !important;
    background: rgba(255, 255, 255, 0.26) !important;
  }
}

.single_add_to_cart_button.s77-add-to-cart-card:active {
  transform: scale(0.97) !important;
  opacity: 0.9 !important;
}

/* Centering rule when Add to Cart card is the only card on its row */
#upload-processing .s77-add-to-cart-card:last-child:nth-child(4n + 1) {
  grid-column: 1 / -1 !important;
  justify-self: center !important;
  width: calc((100% - 3 * 1.25rem) / 4) !important;
  max-width: 100% !important;
}

@media (min-width: 769px) and (max-width: 1024px) {
  #upload-processing .s77-add-to-cart-card:last-child:nth-child(4n + 1) {
    grid-column: auto !important;
    justify-self: stretch !important;
    width: 100% !important;
  }
  #upload-processing .s77-add-to-cart-card:last-child:nth-child(3n + 1) {
    grid-column: 1 / -1 !important;
    justify-self: center !important;
    width: calc((100% - 2 * 1rem) / 3) !important;
    max-width: 100% !important;
  }
}

@media (max-width: 768px) {
  #upload-processing .s77-add-to-cart-card:last-child:nth-child(4n + 1),
  #upload-processing .s77-add-to-cart-card:last-child:nth-child(3n + 1) {
    grid-column: auto !important;
    justify-self: stretch !important;
    width: 100% !important;
  }
  #upload-processing .s77-add-to-cart-card:last-child:nth-child(2n + 1) {
    grid-column: 1 / -1 !important;
    justify-self: center !important;
    width: calc((100% - 0.75rem) / 2) !important;
    max-width: 100% !important;
  }
}

.woocommerce div.product .product_meta {
  grid-column: 1 / -1 !important;
  margin-top: 1.25rem !important;
  padding-top: 1.25rem !important;
  border-top: 1px solid #f1f5f9 !important;
  font-size: 0.88rem !important;
  color: #64748b !important;
}

/* Product Tabs / Information Section - Hidden as requested */
.woocommerce div.product .woocommerce-tabs,
.woocommerce-tabs.wc-tabs-wrapper {
  display: none !important;
}

/* Hide Upsells / "S-ar putea să-ți placă și..." */
.woocommerce .up-sells.upsells.products,
.woocommerce section.up-sells,
.woocommerce .upsells,
.up-sells.upsells {
  display: none !important;
}

/* Related Products ("Produse similare") Full Width 4-Column Grid */
.woocommerce .related.products,
.woocommerce section.related,
.related.products {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 3.5rem !important;
  padding-top: 2rem !important;
  border-top: 1px solid #e2e8f0 !important;
  clear: both !important;
  box-sizing: border-box !important;
}

.woocommerce .related.products > h2,
.woocommerce section.related > h2,
.related.products > h2 {
  font-size: 1.6rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 1.75rem 0 !important;
  letter-spacing: -0.4px;
}

.woocommerce .related.products ul.products,
.woocommerce section.related ul.products,
.related.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.5rem !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

@media (max-width: 1024px) {
  .woocommerce .related.products ul.products,
  .woocommerce section.related ul.products,
  .related.products ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.25rem !important;
  }
}

@media (max-width: 768px) {
  .woocommerce .related.products,
  .woocommerce section.related,
  .related.products {
    margin-top: 2rem !important;
    padding-top: 1.5rem !important;
  }
  .woocommerce .related.products > h2,
  .woocommerce section.related > h2,
  .related.products > h2 {
    font-size: 1.3rem !important;
    margin-bottom: 1rem !important;
  }
  .woocommerce .related.products ul.products,
  .woocommerce section.related ul.products,
  .related.products ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.85rem !important;
  }
}
.woocommerce div.product .woocommerce-tabs-disabled {
  grid-column: 1 / -1 !important;
  margin-top: 2rem !important;
  padding-top: 2rem !important;
  border-top: 1px solid #e2e8f0 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  padding: 0 !important;
  margin: 0 0 1.5rem 0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: #f1f2f5 !important;
  border-radius: 8px 8px 0 0 !important;
  margin-right: 0.5rem !important;
  border: 1px solid #e2e8f0 !important;
  border-bottom: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  background: #ffffff !important;
  border-top: 3px solid #a32513 !important;
}

.woocommerce div.product .woocommerce-tabs .panel {
  background: #ffffff !important;
  padding: 1.5rem !important;
  border-radius: 12px !important;
}

/* Upload Progress Bar */
.s77-upload-progress-container {
  margin: 1rem 0;
  background: #e2e8f0;
  border-radius: 8px;
  height: 12px;
  overflow: hidden;
  display: none;
}

.s77-upload-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #feb414, #a32513);
  transition: width 0.15s ease;
}

/* PWA Install Banner */
.s77-pwa-install-toast {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #0f172a;
  color: #ffffff;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  display: none;
  align-items: center;
  gap: 1rem;
  z-index: 9998;
  animation: s77-slideUp 0.4s ease;
  border-left: 4px solid #feb414;
}

@keyframes s77-slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.s77-pwa-btn {
  background: #feb414;
  color: #111;
  border: none;
  padding: 0.5rem 1rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.s77-pwa-btn:hover {
  transform: scale(1.05);
}

/* Footer */
.s77-footer {
  background: #000000;
  color: #94a3b8;
  padding: 4rem 0 2rem 0;
  margin-top: 5rem;
  border-top: 3px solid #a32513;
}

.s77-footer a {
  color: #feb414;
}

.s77-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.s77-footer-col-title {
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 1rem;
}

.s77-footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 2;
}

.s77-footer-badges {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.s77-footer-badges a {
  display: inline-block;
}

.s77-footer-badges img {
  width: 250px;
  height: 50px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}

.s77-footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2.5rem;
  font-size: 0.85rem;
}

/* Mobile Alignment: Center all footer content on mobile / portable devices */
@media (max-width: 768px) {
  .s77-footer {
    padding: 3rem 1rem 1.5rem 1rem;
    text-align: center;
  }

  .s77-footer-grid {
    text-align: center;
    gap: 2.5rem;
  }

  .s77-footer-col {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .s77-footer-col-title {
    text-align: center;
  }

  .s77-footer-col p {
    text-align: center;
  }

  .s77-footer-list {
    text-align: center;
    padding: 0;
    margin: 0;
  }

  .s77-footer-list li {
    text-align: center;
  }

  .s77-footer-badges {
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .s77-footer-badges a {
    display: flex;
    justify-content: center;
  }

  .s77-footer-badges img {
    margin: 0 auto;
  }
}

/* ==========================================================================
   Studio77 WooCommerce My Account Page (Dropdown Button Cards Grid)
   ========================================================================== */
.woocommerce-account .woocommerce {
  display: block !important;
  width: 100% !important;
  clear: both !important;
}

.woocommerce-account .woocommerce:before,
.woocommerce-account .woocommerce:after {
  content: "" !important;
  display: table !important;
  clear: both !important;
}

.s77-myaccount-nav,
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-MyAccount-navigation {
  float: none !important;
  width: 100% !important;
  clear: both !important;
  display: block !important;
  margin-bottom: 2rem !important;
}

.s77-myaccount-grid,
.woocommerce-account .woocommerce-MyAccount-navigation ul,
.woocommerce-MyAccount-navigation ul {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  grid-auto-rows: 1fr !important;
  align-items: stretch !important;
  gap: 16px !important;
  list-style: none !important;
  margin: 0 0 2rem 0 !important;
  padding: 0 !important;
  width: 100% !important;
  clear: both !important;
}

.s77-myaccount-item,
.woocommerce-MyAccount-navigation ul li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  width: 100% !important;
  height: 100% !important;
}

.s77-myaccount-btn,
.woocommerce-MyAccount-navigation ul li a {
  display: flex !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 60px !important;
  box-sizing: border-box !important;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 16px 20px;
  color: #1e293b !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.2px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.s77-myaccount-btn-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.s77-myaccount-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #a32513;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.s77-myaccount-btn-icon svg {
  stroke-width: 2.2px;
}

.s77-myaccount-btn-label {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.2px;
  color: #1e293b;
  transition: color 0.2s ease;
}

.s77-myaccount-btn-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

/* Hover Effect */
.s77-myaccount-btn:hover,
.woocommerce-MyAccount-navigation ul li a:hover {
  border-color: #feb414;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(254, 180, 20, 0.22), 0 2px 8px rgba(0, 0, 0, 0.06);
  color: #a32513 !important;
}

.s77-myaccount-btn:hover .s77-myaccount-btn-icon {
  background: #fff8e7;
  border-color: #fde68a;
  color: #feb414;
  transform: scale(1.08);
}

.s77-myaccount-btn:hover .s77-myaccount-btn-label {
  color: #a32513;
}

.s77-myaccount-btn:hover .s77-myaccount-btn-chevron {
  color: #feb414;
  transform: translateX(3px);
}

/* Active State (Selected Endpoint) */
.s77-myaccount-btn.is-active,
.woocommerce-MyAccount-navigation-link.is-active a,
.woocommerce-MyAccount-navigation-link.is-active .s77-myaccount-btn {
  background: linear-gradient(135deg, #a32513 0%, #831c0e 100%) !important;
  border-color: #a32513 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(163, 37, 19, 0.35) !important;
}

.s77-myaccount-btn.is-active .s77-myaccount-btn-icon,
.woocommerce-MyAccount-navigation-link.is-active .s77-myaccount-btn .s77-myaccount-btn-icon {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #feb414 !important;
}

.s77-myaccount-btn.is-active .s77-myaccount-btn-label,
.woocommerce-MyAccount-navigation-link.is-active .s77-myaccount-btn .s77-myaccount-btn-label {
  color: #ffffff !important;
}

.s77-myaccount-btn.is-active .s77-myaccount-btn-chevron,
.woocommerce-MyAccount-navigation-link.is-active .s77-myaccount-btn .s77-myaccount-btn-chevron {
  color: #feb414 !important;
  transform: rotate(90deg) !important;
}

/* Content Box */
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-MyAccount-content {
  float: none !important;
  width: 100% !important;
  clear: both !important;
  display: block !important;
  box-sizing: border-box !important;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 16px;
  padding: 2.2rem;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04), 0 2px 6px rgba(15, 23, 42, 0.02);
  margin-top: 1rem;
}

/* Dashboard Intro (Clean Centered Text, No Box Container on Main Dashboard) */
.woocommerce-account .woocommerce-MyAccount-content:has(.s77-myaccount-dashboard-intro) {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 1.5rem 0 0 0 !important;
  text-align: center !important;
}

.s77-myaccount-dashboard-intro {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.s77-dashboard-greeting {
  font-size: 1.25rem !important;
  font-weight: 500 !important;
  color: #1e293b !important;
  margin-bottom: 0.85rem !important;
  text-align: center !important;
}

.s77-dashboard-greeting strong {
  font-weight: 800 !important;
  color: #a32513 !important;
}

.s77-dashboard-greeting a.s77-logout-inline-link {
  color: #dc2626 !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  margin-left: 3px !important;
  transition: color 0.2s ease !important;
}

.s77-dashboard-greeting a.s77-logout-inline-link:hover {
  color: #feb414 !important;
}

.s77-dashboard-lead {
  font-size: 1.05rem !important;
  color: #475569 !important;
  line-height: 1.8 !important;
  margin: 0 auto !important;
  text-align: center !important;
  max-width: 760px !important;
}

.s77-dashboard-lead a {
  color: #a32513 !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  transition: color 0.2s ease !important;
}

.s77-dashboard-lead a:hover {
  color: #feb414 !important;
}

.woocommerce-MyAccount-content p {
  font-size: 1.05rem;
  color: #334155;
  line-height: 1.7;
}

.woocommerce-MyAccount-content p a {
  color: #a32513;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.woocommerce-MyAccount-content p a:hover {
  color: #feb414;
}

/* Form controls in account */
.woocommerce-MyAccount-content .woocommerce-form-row input.input-text,
.woocommerce-MyAccount-content .woocommerce-form-row select {
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 14px;
  width: 100%;
  font-size: 0.95rem;
}

.woocommerce-MyAccount-content .woocommerce-Button.button,
.woocommerce-MyAccount-content .woocommerce-button.button {
  background: #a32513 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 12px 24px !important;
  border-radius: 8px !important;
  border: none !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 3px 10px rgba(163, 37, 19, 0.25) !important;
}

.woocommerce-MyAccount-content .woocommerce-Button.button:hover,
.woocommerce-MyAccount-content .woocommerce-button.button:hover {
  background: #feb414 !important;
  color: #111111 !important;
  box-shadow: 0 4px 14px rgba(254, 180, 20, 0.4) !important;
}

/* ==========================================================================
   Studio77 Authentication & Dedicated Registration Page Styles
   ========================================================================== */

/* Remove double white card box when login is on general page or inside account navigation */
.woocommerce-account .s77-page-content,
.s77-page-content:has(form.login),
.s77-page-content:has(form.woocommerce-form-login),
.s77-page-content:has(#customer_login),
.s77-page-content:has(.woocommerce-MyAccount-navigation),
.s77-page-content:has(.s77-myaccount-nav) {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}

/* Base Container Centering */
.woocommerce-account:not(.logged-in) .woocommerce,
.woocommerce:has(form.login),
.woocommerce:has(form.woocommerce-form-login),
.woocommerce:has(#customer_login),
.woocommerce-account #customer_login,
#customer_login,
.s77-login-single-container {
  float: none !important;
  clear: both !important;
  max-width: 480px !important;
  margin: 0 auto !important;
  width: 100% !important;
}

#customer_login:before,
#customer_login:after,
.col2-set:before,
.col2-set:after {
  display: none !important;
  content: none !important;
}

/* Login Card Container (Single clean container) */
.s77-login-card {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 16px !important;
  padding: 2.2rem !important;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05), 0 2px 6px rgba(15, 23, 42, 0.02) !important;
  margin: 0 auto 2rem auto !important;
  width: 100% !important;
  max-width: 480px !important;
  box-sizing: border-box !important;
  float: none !important;
}

/* Remove any nested borders/backgrounds on inner form */
.s77-login-card form.login,
.s77-login-card form.woocommerce-form-login,
.woocommerce-account form.login,
.woocommerce-account form.woocommerce-form-login {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

/* Login Header */
.s77-login-header {
  text-align: center !important;
  margin-bottom: 1.5rem !important;
}

.s77-login-icon-badge,
.s77-register-icon-badge {
  width: 56px !important;
  height: 56px !important;
  background: #fef2f2 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 0.85rem auto !important;
  box-shadow: 0 2px 8px rgba(163, 37, 19, 0.1) !important;
}

.s77-login-header h2,
.woocommerce-account:not(.logged-in) h2,
.woocommerce-account #customer_login h2 {
  text-align: center !important;
  font-size: 1.6rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 auto 0.4rem auto !important;
  display: block !important;
}

.s77-form-subtitle {
  text-align: center !important;
  font-size: 0.92rem !important;
  color: #64748b !important;
  margin: 0 auto !important;
  line-height: 1.4 !important;
}

/* Inputs & Form Groups */
.s77-form-group,
form.login .form-row,
form.woocommerce-form-login .form-row,
.woocommerce form.login .form-row {
  float: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 0 1.15rem 0 !important;
  clear: both !important;
}

.s77-form-group label,
form.login label,
form.woocommerce-form-login label {
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  color: #334155 !important;
  margin-bottom: 0.4rem !important;
  display: block !important;
  text-align: left !important;
}

.s77-form-input,
form.login input.input-text,
form.woocommerce-form-login input.input-text {
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 11px 14px !important;
  width: 100% !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.s77-form-input:focus,
form.login input.input-text:focus,
form.woocommerce-form-login input.input-text:focus {
  border-color: #a32513 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(163, 37, 19, 0.12) !important;
}

/* Login Remember Me & Lost Password Row */
.s77-login-remember-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: 0.25rem !important;
  margin-bottom: 1.35rem !important;
  font-size: 0.9rem !important;
}

.woocommerce-form-login__rememberme {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: #475569 !important;
  cursor: pointer !important;
  margin: 0 !important;
}

.woocommerce-LostPassword,
.woocommerce-LostPassword a {
  color: #a32513 !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  margin: 0 !important;
}

.woocommerce-LostPassword a:hover {
  color: #feb414 !important;
}

/* Identical Red Action Buttons (Autentificare & Creează cont) */
.s77-login-btn-wrap {
  margin-bottom: 0 !important;
  width: 100% !important;
  display: block !important;
  clear: both !important;
}

.s77-register-btn-wrap {
  margin-top: 0 !important;
  width: 100% !important;
  display: block !important;
  clear: both !important;
}

.s77-btn-red-action,
.s77-btn-submit-login,
.s77-btn-create-account-direct,
a.s77-btn-red-action,
a.s77-btn-create-account-direct,
button.s77-btn-red-action,
form.login .woocommerce-form-login__submit,
form.login button[name="login"] {
  background: #a32513 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 1.05rem !important;
  height: 48px !important;
  line-height: 48px !important;
  padding: 0 20px !important;
  border-radius: 8px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 12px rgba(163, 37, 19, 0.25) !important;
  display: block !important;
  margin: 0 auto !important;
  width: 100% !important;
  text-align: center !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  float: none !important;
  clear: both !important;
}

.s77-btn-red-action:hover,
.s77-btn-submit-login:hover,
.s77-btn-create-account-direct:hover,
a.s77-btn-red-action:hover,
a.s77-btn-create-account-direct:hover,
button.s77-btn-red-action:hover,
form.login .woocommerce-form-login__submit:hover,
form.login button[name="login"]:hover {
  background: #feb414 !important;
  color: #111111 !important;
  box-shadow: 0 6px 16px rgba(254, 180, 20, 0.4) !important;
}

/* Login Divider SAU */
.s77-login-divider {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  margin: 1.5rem 0 !important;
  width: 100% !important;
  clear: both !important;
}

.s77-login-divider::before,
.s77-login-divider::after {
  content: "" !important;
  flex: 1 1 auto !important;
  border-bottom: 1.5px solid #cbd5e1 !important;
  height: 0 !important;
  display: block !important;
}

.s77-login-divider span {
  padding: 0 1rem !important;
  color: #94a3b8 !important;
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  flex-shrink: 0 !important;
}

.s77-new-customer-action {
  width: 100% !important;
  display: block !important;
  clear: both !important;
}

/* ==========================================================================
   Dedicated Registration Page (/inregistrare/)
   ========================================================================== */

.s77-register-page-container {
  padding-top: 2.5rem !important;
  padding-bottom: 4.5rem !important;
  min-height: 70vh !important;
}

.s77-register-card-wrapper {
  max-width: 660px !important;
  margin: 0 auto !important;
  width: 100% !important;
}

.s77-register-card {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 20px !important;
  padding: 2.5rem 2.2rem !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.02) !important;
}

.s77-register-header {
  text-align: center !important;
  margin-bottom: 2rem !important;
}

.s77-register-title {
  font-size: 1.75rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 auto 0.4rem auto !important;
}

.s77-register-subtitle {
  font-size: 0.95rem !important;
  color: #64748b !important;
  margin: 0 auto !important;
  max-width: 500px !important;
  line-height: 1.4 !important;
}

/* Form Sections */
.s77-form-section {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 1.35rem 1.35rem 0.5rem 1.35rem !important;
  margin-bottom: 1.35rem !important;
}

.s77-section-label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin-bottom: 1.15rem !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding-bottom: 0.6rem !important;
}

.s77-section-label svg {
  color: #a32513 !important;
}

.s77-form-grid-2 {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 1rem !important;
}

@media (max-width: 600px) {
  .s77-form-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
}

.s77-form-select {
  height: 46px !important;
  appearance: auto !important;
  cursor: pointer !important;
}

.s77-req {
  color: #dc2626 !important;
  font-weight: 800 !important;
}

.s77-register-privacy {
  font-size: 0.85rem !important;
  color: #64748b !important;
  line-height: 1.45 !important;
  margin: 1.25rem 0 1.5rem 0 !important;
  text-align: center !important;
}

.s77-register-privacy a {
  color: #a32513 !important;
  text-decoration: underline !important;
  font-weight: 600 !important;
}

.s77-btn-create-account {
  display: block !important;
  width: 100% !important;
  max-width: 340px !important;
  margin: 0 auto !important;
  background: #a32513 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 1.1rem !important;
  padding: 14px 28px !important;
  border-radius: 10px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 14px rgba(163, 37, 19, 0.25) !important;
  text-align: center !important;
}

.s77-btn-create-account:hover {
  background: #feb414 !important;
  color: #111111 !important;
  box-shadow: 0 6px 18px rgba(254, 180, 20, 0.4) !important;
}

.s77-register-footer-links {
  text-align: center !important;
  margin-top: 1.5rem !important;
  font-size: 0.95rem !important;
  color: #64748b !important;
}

.s77-link-login {
  color: #a32513 !important;
  font-weight: 800 !important;
  text-decoration: underline !important;
  margin-left: 6px !important;
}

.s77-link-login:hover {
  color: #feb414 !important;
}

/* Responsive Mobile Rules (2 Columns on Mobile with Equal Dimensions) */
@media (max-width: 768px) {
  #customer_login.col2-set {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .woocommerce-account .s77-container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .s77-myaccount-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-auto-rows: 1fr !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin-bottom: 1.5rem !important;
  }

  .s77-myaccount-item {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
  }

  .s77-myaccount-btn {
    width: 100% !important;
    height: 100% !important;
    min-height: 84px !important;
    box-sizing: border-box !important;
    padding: 12px 6px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    gap: 6px !important;
    border-radius: 12px !important;
  }

  .s77-myaccount-btn-left {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    flex: 1 1 auto !important;
  }

  .s77-myaccount-btn-icon {
    width: 32px !important;
    height: 32px !important;
    margin: 0 auto !important;
    flex-shrink: 0 !important;
  }

  .s77-myaccount-btn-icon svg {
    width: 18px !important;
    height: 18px !important;
  }

  .s77-myaccount-btn-label {
    font-size: 0.82rem !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    max-width: 100% !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .s77-myaccount-btn-chevron {
    display: none !important; /* Keep mobile buttons compact & balanced */
  }

  .woocommerce-MyAccount-content {
    padding: 1.4rem 1rem !important;
    border-radius: 12px !important;
  }
}

/* ==========================================================================
   WooCommerce System Notices & Alerts (Modern Studio77 Theme UI)
   ========================================================================== */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info,
.s77-alert-box {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
  border-radius: 12px !important;
  padding: 0.95rem 1.25rem !important;
  margin: 0 0 1.5rem 0 !important;
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  list-style: none !important;
  list-style-type: none !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
  position: relative !important;
  box-sizing: border-box !important;
}

/* Remove all unwanted bullets, pseudo elements and font icon circles from WooCommerce */
.woocommerce-error[role=alert]::before,
.woocommerce-message[role=alert]::before,
.woocommerce-info[role=alert]::before,
.woocommerce-error[role=alert]::after,
.woocommerce-message[role=alert]::after,
.woocommerce-info[role=alert]::after,
.woocommerce-error::before,
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::after,
.woocommerce-message::after,
.woocommerce-info::after,
[role=alert]::before,
[role=alert]::after,
.woocommerce-error li::before,
.woocommerce-message li::before,
.woocommerce-info li::before,
.woocommerce-error li::after,
.woocommerce-message li::after,
.woocommerce-info li::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: none !important;
  border: none !important;
  font-size: 0 !important;
  line-height: 0 !important;
  position: static !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce-error li,
.woocommerce-message li,
.woocommerce-info li {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.s77-alert-row {
  width: 100%;
}

.s77-alert-content {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.s77-alert-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  width: 26px !important;
  height: 26px !important;
}

.s77-alert-icon svg {
  width: 26px !important;
  height: 26px !important;
  display: block !important;
}

.s77-alert-message {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
  color: inherit;
  font-weight: 600;
}

/* Success Box */
.woocommerce-message,
.s77-alert-success {
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  border-left: 5px solid #16a34a !important;
  color: #14532d !important;
}

/* Error Box */
.woocommerce-error,
.s77-alert-error {
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  border-left: 5px solid #dc2626 !important;
  color: #991b1b !important;
}

/* Info Box */
.woocommerce-info,
.s77-alert-info {
  background: #fff8f8 !important;
  border: 1px solid #fed7aa !important;
  border-left: 5px solid #a32513 !important;
  color: #7c2d12 !important;
}

/* Action button inside notice (e.g. "Vezi coșul") */
.woocommerce-message .button,
.woocommerce-error .button,
.woocommerce-info .button,
.s77-alert-message a.button,
.s77-alert-message a.wc-forward {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #1e293b !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  padding: 6px 16px !important;
  border-radius: 20px !important;
  text-decoration: none !important;
  margin: 0 !important;
  order: 2 !important;
  float: none !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}

.woocommerce-message .button:hover,
.woocommerce-error .button:hover,
.woocommerce-info .button:hover,
.s77-alert-message a.button:hover,
.s77-alert-message a.wc-forward:hover {
  background: #a32513 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(163, 37, 19, 0.25) !important;
}

/* ==========================================================================
   Studio77 Contact Page Styles (Unified Theme UI)
   ========================================================================== */
.s77-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.s77-contact-card {
  text-align: center;
  align-items: stretch;
}

.s77-contact-card .s77-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.2rem 1.5rem 1.5rem 1.5rem;
}

.s77-contact-icon-badge {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  border: 1.5px solid #e2e4e8;
  color: #a32513;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.s77-badge-whatsapp {
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.3);
}

.s77-badge-location {
  color: #a32513;
  border-color: rgba(163, 37, 19, 0.3);
}

.s77-badge-email {
  color: #d97706;
  border-color: rgba(217, 119, 6, 0.3);
}

.s77-contact-card:hover .s77-contact-icon-badge {
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 8px 20px rgba(254, 180, 20, 0.25);
  border-color: #feb414;
}

.s77-contact-card .s77-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #18181b;
  margin: 0 0 0.5rem 0;
  text-align: center;
}

.s77-contact-val {
  font-size: 1.12rem;
  font-weight: 800;
  color: #a32513;
  margin: 0.25rem 0 0.5rem 0;
  letter-spacing: -0.2px;
  line-height: 1.35;
}

.s77-contact-card .s77-card-cat {
  font-size: 0.88rem;
  color: #71717a;
  margin: 0 0 1rem 0;
  text-align: center;
  line-height: 1.45;
}

.s77-contact-map-card {
  margin-bottom: 2rem;
}

.s77-map-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.s77-map-header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.s77-map-header-right {
  flex-shrink: 0;
}

.s77-map-header-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.s77-map-header-title {
  font-weight: 800;
  font-size: 1.15rem;
  color: #0f172a;
}

.s77-map-header-addr {
  font-size: 0.88rem;
  color: #71717a;
  font-weight: 500;
}

.s77-btn-open-maps {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1a73e8;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 18px;
  border-radius: 24px;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(26, 115, 232, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.s77-btn-open-maps svg {
  stroke: #ffffff;
  flex-shrink: 0;
}

.s77-btn-open-maps:hover {
  background: #1557b0;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(26, 115, 232, 0.5);
  transform: translateY(-2px);
}

.s77-contact-map-iframe-container iframe {
  width: 100%;
  height: 420px;
  border-radius: 0 0 17px 17px;
}

@media (max-width: 1024px) {
  .s77-contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .s77-contact-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    margin-bottom: 2rem;
  }

  .s77-contact-card .s77-card-inner {
    padding: 1.5rem 1rem 1rem 1rem;
  }

  .s77-contact-icon-badge {
    width: 56px;
    height: 56px;
    margin-bottom: 0.85rem;
  }

  .s77-contact-val {
    font-size: 1rem;
  }

  .s77-map-header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .s77-btn-open-maps {
    width: auto;
    padding: 7px 14px;
    font-size: 0.82rem;
  }

  .s77-contact-map-iframe-container iframe {
    height: 320px;
    border-radius: 0 0 13px 13px;
  }
}

/* ==========================================================================
   Studio77 WooCommerce Cart Page (1/8 Product Column + 7/8 Photo Cards Grid)
   ========================================================================== */
.woocommerce-cart .woocommerce {
  width: 100%;
}

.s77-cart-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3.5rem;
  width: 100%;
  box-sizing: border-box;
}

.s77-cart-main {
  width: 100%;
  flex: 1 1 100%;
  min-width: 0;
}

.s77-cart-sidebar {
  width: 100%;
  flex: 1 1 100%;
  position: static;
  min-width: 0;
  display: block;
  margin-top: 1.5rem;
}

.s77-cart-items-container {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  width: 100%;
}

/* Individual Product Block Card & Accordion */
.s77-cart-item-block {
  background: #ffffff;
  border: 1.5px solid #eef2f6;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  margin-bottom: 1.25rem;
}

.s77-cart-item-block:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
  border-color: #cbd5e1;
}

.s77-cart-item-block.is-open {
  border-color: #cbd5e1;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

/* Accordion Header (Closed/Open Bar) */
.s77-cart-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 1.5rem;
  background: #ffffff;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease, border-color 0.2s ease;
  box-sizing: border-box;
}

.s77-cart-accordion-header:hover {
  background: #f8fafc;
}

.s77-cart-item-block.is-open .s77-cart-accordion-header {
  background: #f8fafc;
  border-bottom: 1.5px solid #e2e8f0;
}

.s77-cart-acc-top-area {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1 1 auto;
  min-width: 0;
}

/* Accordion 1/8 Thumbnail & Delete Column on PC */
.s77-cart-accordion-thumb-col {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 20px;
  border-right: 1.5px dashed #e2e8f0;
  padding-right: 20px;
  box-sizing: border-box;
}

/* Unified Button Size & Geometry for Delete (X) and Chevron (v) */
.s77-acc-remove-btn,
.s77-cart-accordion-chevron {
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.s77-acc-remove-btn {
  background: #fee2e2 !important;
  color: #ef4444 !important;
  border: 1.5px solid #fecaca !important;
  text-decoration: none !important;
}

.s77-acc-remove-btn:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
  transform: scale(1.08) !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35) !important;
}

.s77-acc-remove-btn svg {
  stroke: currentColor;
  width: 18px;
  height: 18px;
}

.s77-cart-accordion-chevron {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1.5px solid #e2e8f0 !important;
}

.s77-cart-accordion-chevron svg {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  stroke: currentColor;
  width: 20px;
  height: 20px;
}

.s77-cart-accordion-chevron:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  transform: scale(1.08) !important;
}

.s77-cart-item-block.is-open .s77-cart-accordion-chevron {
  background: #fee2e2 !important;
  color: #a32513 !important;
  border-color: #fecaca !important;
}

.s77-cart-item-block.is-open .s77-cart-accordion-chevron svg {
  transform: rotate(180deg) !important;
}

/* Visibility toggles for PC vs Mobile remove buttons */
.s77-pc-remove-btn {
  display: inline-flex !important;
}

.s77-mobile-remove-btn {
  display: none !important;
}

.s77-cart-accordion-thumb-box {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid #e2e8f0;
  background: #f1f5f9;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.s77-cart-accordion-thumb-box .s77-cart-prod-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* Accordion 7/8 Info Column */
.s77-cart-accordion-main-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.s77-cart-accordion-title {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 !important;
  line-height: 1.35 !important;
  word-break: break-word;
}

.s77-cart-accordion-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.88rem;
  color: #64748b;
}

.s77-acc-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #475569;
}

.s77-acc-badge strong {
  color: #0f172a;
  font-weight: 800;
}

.s77-acc-badge-dot {
  color: #cbd5e1;
  font-weight: 700;
}

.s77-cart-accordion-right-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.s77-cart-accordion-price-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.s77-acc-price-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.s77-acc-price-val {
  font-size: 1.25rem;
  font-weight: 900;
  color: #a32513;
  line-height: 1.2;
}

.s77-cart-accordion-controls {
  display: flex;
  align-items: center;
}

.s77-cart-accordion-chevron {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.s77-cart-accordion-chevron svg {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.s77-cart-accordion-chevron:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.s77-cart-item-block.is-open .s77-cart-accordion-chevron {
  background: #fee2e2;
  color: #a32513;
  border-color: #fecaca;
}

.s77-cart-item-block.is-open .s77-cart-accordion-chevron svg {
  transform: rotate(180deg);
}

/* Accordion Body */
.s77-cart-accordion-body {
  width: 100%;
}

.s77-cart-accordion-body-inner {
  display: flex;
  flex-direction: column;
}

/* Full-Width Photo Grid Area inside Accordion Body */
.s77-cart-uploads-full-grid-wrap {
  width: 100%;
  padding: 1.25rem 1.5rem;
  box-sizing: border-box;
}

.s77-cart-photo-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 14px !important;
  width: 100% !important;
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

@media (min-width: 1400px) {
  .s77-cart-photo-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1200px) {
  .s77-cart-photo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}

@media (max-width: 991px) {
  .s77-cart-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}

/* Photo Cards inside Cart */
.s77-cart-photo-grid .upload-file.s77-upload-card {
  padding: 0.65rem !important;
  border-radius: 14px !important;
  position: relative !important;
}

.s77-cart-photo-grid .s77-upload-card-thumb {
  margin-bottom: 0.45rem !important;
  border-radius: 10px !important;
}

.s77-cart-photo-grid .s77-upload-card-title-wrap {
  height: 2.5em !important;
  line-height: 1.25em !important;
  margin-bottom: 0.45rem !important;
}

.s77-cart-photo-grid .s77-upload-card-title-wrap .upload-title {
  font-size: 0.78rem !important;
  line-height: 1.25em !important;
}

.s77-cart-photo-grid .s77-card-stepper {
  height: 32px !important;
  grid-template-columns: 32px 1fr 32px !important;
  border-radius: 8px !important;
  width: 100% !important;
}

.s77-cart-photo-grid .s77-qty-btn {
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  font-size: 1.1rem !important;
}

.s77-cart-photo-grid .woo-upload-quantity {
  height: 32px !important;
  font-size: 0.92rem !important;
  width: 100% !important;
  min-width: 0 !important;
}

.s77-cart-photo-grid .upload-delete.s77-btn-delete {
  position: absolute !important;
  top: 4px !important;
  right: 4px !important;
  z-index: 10 !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px !important;
}

/* Standard Product Quantity Controls (when no uploads) */
.s77-cart-standard-qty-wrap {
  padding: 1.5rem;
  display: flex;
  align-items: center;
}

.s77-standard-qty-box {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #334155;
}

.s77-standard-qty-box input.qty {
  width: 64px;
  height: 38px;
  text-align: center;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  font-weight: 700;
  font-size: 0.95rem;
}

/* Full-Width Footer Action Row: Button "Adaugă poze" (Complementary Emerald Green) */
.s77-cart-add-photos-footer-row {
  width: 100%;
  border-top: 1.5px dashed #cbd5e1;
  background: #f8fafc;
  padding: 0.75rem 1rem;
  border-radius: 0 0 18px 18px;
  box-sizing: border-box;
}

.s77-cart-add-photos-btn {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 0.85rem 1.25rem !important;
  background: linear-gradient(135deg, #16a34a, #15803d) !important;
  border: 1px solid #166534 !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.25) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
}

.s77-add-photos-btn-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.s77-add-photos-btn-text {
  color: #ffffff !important;
  font-weight: 800 !important;
  letter-spacing: -0.2px;
  transition: color 0.2s ease;
}

.s77-cart-add-photos-btn:hover {
  background: linear-gradient(135deg, #15803d, #14532d) !important;
  border-color: #14532d !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.38) !important;
}

.s77-cart-add-photos-btn:hover .s77-add-photos-btn-icon {
  background: #ffffff;
  color: #15803d;
  transform: scale(1.1);
}

.s77-cart-add-photos-btn:active {
  transform: scale(0.98) !important;
}

.s77-cart-add-photos-btn.is-uploading {
  opacity: 0.8;
  pointer-events: none;
  background: #15803d !important;
}

.s77-summary-label {
  color: #64748b;
  font-weight: 600;
}

.s77-summary-val {
  color: #0f172a;
  font-weight: 800;
}

.s77-summary-total {
  font-size: 1.05rem;
}

.s77-summary-total .s77-subtotal-val {
  color: #a32513;
  font-size: 1.25rem;
  font-weight: 900;
}

/* Cart Bottom Actions (Coupon & Update) */
.s77-cart-bottom-actions-card {
  background: #ffffff;
  border: 1.5px solid #eef2f6;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  margin-top: 1.5rem;
  box-sizing: border-box;
}

.s77-cart-bottom-actions-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.s77-coupon-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.s77-coupon-input {
  padding: 9px 14px !important;
  border-radius: 10px !important;
  border: 1.5px solid #cbd5e1 !important;
  font-size: 0.9rem !important;
  width: 190px !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
}

.s77-coupon-input:focus {
  border-color: #a32513 !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(163, 37, 19, 0.12);
}

.s77-coupon-btn {
  background: #1e293b !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  padding: 9px 18px !important;
  border-radius: 10px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}

.s77-coupon-btn:hover {
  background: #a32513 !important;
  transform: translateY(-1px);
}

.s77-update-cart-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #ffffff !important;
  color: #334155 !important;
  border: 1.5px solid #cbd5e1 !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  padding: 9px 18px !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  margin-left: auto !important;
}

.s77-update-cart-btn:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

/* ==========================================================================
   Studio77 Cart Totals Summary Card (Full-Width Under Products Layout)
   ========================================================================== */
.s77-cart-totals-card {
  background: #ffffff;
  border: 1.5px solid #eef2f6;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  padding: 2rem 2.25rem;
  box-sizing: border-box;
  max-width: 100% !important;
  width: 100% !important;
}

.s77-cart-totals-header {
  padding-bottom: 1rem;
  border-bottom: 1.5px solid #f1f5f9;
  margin-bottom: 1.25rem;
}

.s77-cart-totals-title {
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.s77-cart-totals-title svg {
  color: #a32513;
}

.s77-cart-totals-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.75rem !important;
}

.s77-cart-totals-table tr {
  border-bottom: 1px solid #f1f5f9;
}

.s77-cart-totals-table th {
  padding: 1rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #64748b;
  text-align: left;
  border: none;
  width: 48%;
}

.s77-cart-totals-table td {
  padding: 1rem 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  text-align: right;
  border: none;
}

.s77-cart-totals-table tr.s77-order-total-row,
.s77-cart-totals-table tr.order-total {
  border-top: 2px solid #e2e8f0;
  border-bottom: none;
}

.s77-cart-totals-table tr.s77-order-total-row th,
.s77-cart-totals-table tr.order-total th {
  padding-top: 1.25rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
}

.s77-cart-totals-table tr.s77-order-total-row td,
.s77-cart-totals-table tr.order-total td {
  padding-top: 1.25rem;
  font-size: 1.6rem;
  font-weight: 900;
  color: #a32513;
}

.s77-checkout-action-wrap {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.wc-proceed-to-checkout a.checkout-button,
a.checkout-button.button,
.s77-checkout-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 460px !important;
  box-sizing: border-box !important;
  background: #a32513 !important;
  color: #ffffff !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  padding: 1.15rem 2rem !important;
  border-radius: 50px !important;
  border: none !important;
  text-decoration: none !important;
  box-shadow: 0 6px 20px rgba(163, 37, 19, 0.35) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
  text-align: center !important;
  margin: 0 auto !important;
}

.wc-proceed-to-checkout a.checkout-button:hover,
a.checkout-button.button:hover,
.s77-checkout-btn:hover {
  background: #8c1e0e !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 28px rgba(163, 37, 19, 0.45) !important;
  color: #ffffff !important;
}

.s77-cart-trust-badges {
  padding-top: 1.25rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.s77-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
}

.s77-trust-item svg {
  color: #16a34a;
  flex-shrink: 0;
}

/* ==========================================================================
   Empty Cart State
   ========================================================================== */
.s77-empty-cart-card {
  background: #ffffff;
  border: 1.5px solid #eef2f6;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
  padding: 4rem 2rem;
  text-align: center;
  max-width: 580px;
  margin: 2rem auto 4rem auto;
  box-sizing: border-box;
}

.s77-empty-cart-icon-wrap {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #fef2f2;
  color: #a32513;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
}

.s77-empty-cart-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.3px;
}

.s77-empty-cart-desc {
  font-size: 0.98rem;
  color: #64748b;
  margin: 0 0 2rem 0;
  line-height: 1.6;
}

.s77-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #a32513;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(163, 37, 19, 0.3);
  transition: all 0.2s ease;
}

.s77-btn-primary:hover {
  background: #8c1e0e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(163, 37, 19, 0.45);
}

/* ==========================================================================
   Responsive Mobile & Tablet Rules for Cart
   ========================================================================== */
@media (max-width: 991px) {
  .s77-cart-wrapper {
    flex-direction: column;
    gap: 1.5rem;
  }

  .s77-cart-main {
    flex: 1 1 100%;
    width: 100%;
  }

  .s77-cart-sidebar {
    flex: 1 1 100%;
    width: 100%;
    position: static;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .s77-cart-accordion-header {
    display: flex !important;
    flex-direction: column !important;
    padding: 1.1rem 1.25rem !important;
    gap: 0.85rem !important;
    align-items: stretch !important;
  }

  .s77-cart-acc-top-area {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100% !important;
  }

  .s77-pc-remove-btn {
    display: none !important;
  }

  .s77-mobile-remove-btn {
    display: inline-flex !important;
  }

  .s77-cart-accordion-thumb-col {
    flex: 0 0 58px !important;
    max-width: 58px !important;
    min-width: 58px !important;
    padding-right: 0 !important;
    border-right: none !important;
    gap: 0 !important;
  }

  .s77-cart-accordion-thumb-box {
    width: 58px !important;
    height: 58px !important;
    border-radius: 12px !important;
  }

  .s77-cart-accordion-title {
    font-size: 0.98rem !important;
  }

  .s77-cart-accordion-badges {
    font-size: 0.82rem !important;
    gap: 6px !important;
  }

  /* Bottom Row on Mobile: [ (X) Delete ] [ TOTAL: 37.18 lei ] [ (v) Chevron ] */
  .s77-cart-accordion-right-meta {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-top: 1.5px dashed #e2e8f0 !important;
    padding-top: 0.75rem !important;
    margin-top: 0.25rem !important;
    gap: 10px !important;
  }

  .s77-cart-accordion-price-box {
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    gap: 8px !important;
    text-align: center !important;
  }

  .s77-acc-price-label {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
  }

  .s77-acc-price-val {
    font-size: 1.25rem !important;
    font-weight: 900 !important;
    color: #a32513 !important;
  }

  .s77-cart-item-top-row {
    flex-direction: column;
    gap: 1.25rem;
    padding: 1rem;
  }

  .s77-cart-product-col {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0;
    flex-direction: row;
    align-items: center;
    text-align: left;
    border-right: none;
    border-bottom: 1.5px dashed #e2e8f0;
    padding-right: 0;
    padding-bottom: 1rem;
    gap: 12px;
  }

  .s77-cart-product-header-wrap {
    width: auto;
  }

  .s77-cart-product-visual {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
  }

  .s77-cart-prod-img-link,
  .s77-cart-prod-img-box {
    width: 56px;
    height: 56px;
  }

  .s77-cart-product-name-box {
    flex: 1 1 auto;
  }

  .s77-cart-prod-title {
    font-size: 0.95rem !important;
  }

  .s77-cart-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    max-height: 400px;
  }

  .s77-cart-item-summary-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding: 1rem;
  }

  .s77-summary-item {
    justify-content: space-between;
  }

  .s77-cart-bottom-actions-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .s77-coupon-box {
    width: 100%;
  }

  .s77-coupon-input {
    flex: 1 1 auto;
    width: auto !important;
  }

  .s77-coupon-btn {
    flex: 0 0 auto;
  }

  .s77-cart-sidebar {
    justify-content: stretch;
  }

  .s77-cart-totals-card {
    max-width: 100%;
    padding: 1.5rem 1.25rem;
  }

  .s77-update-cart-btn {
    width: 100%;
    justify-content: center;
    margin-left: 0 !important;
  }
}

/* ==========================================================================
   Studio77 Modern Unified Checkout Page Layout
   ========================================================================== */
.s77-checkout-wrapper {
  max-width: 1200px;
  margin: 1rem auto 4rem auto;
  width: 100%;
  box-sizing: border-box;
}

.s77-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2rem;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
}

.s77-checkout-customer-section,
.s77-checkout-review-section {
  min-width: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.s77-customer-details-card,
.s77-order-review-card {
  background: #ffffff;
  border: 1.5px solid #eef2f6;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
  padding: 2.25rem 2rem;
  box-sizing: border-box;
  width: 100%;
}

.s77-checkout-section-title {
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 1.5rem 0 !important;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 0.85rem;
  border-bottom: 1.5px solid #f1f5f9;
}

.s77-checkout-section-title svg {
  color: #a32513;
  flex-shrink: 0;
}

/* 2-Column Responsive Form Fields for Billing */
.woocommerce-billing-fields__field-wrapper,
.s77-fields-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.85rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.woocommerce-billing-fields__field-wrapper .form-row,
.s77-fields-grid .form-row {
  margin: 0 0 0.5rem 0 !important;
  padding: 0 !important;
  float: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.woocommerce-billing-fields__field-wrapper .form-row-wide,
.woocommerce-billing-fields__field-wrapper .notes,
.woocommerce-billing-fields__field-wrapper #billing_company_field,
.woocommerce-billing-fields__field-wrapper #billing_country_field,
.woocommerce-billing-fields__field-wrapper #billing_email_field,
.s77-fields-grid .form-row-wide {
  grid-column: 1 / -1 !important;
}

.woocommerce-billing-fields__field-wrapper .form-row-first {
  grid-column: 1 / 2 !important;
}

.woocommerce-billing-fields__field-wrapper .form-row-last {
  grid-column: 2 / 3 !important;
}

@media (max-width: 960px) {
  .s77-checkout-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

@media (max-width: 600px) {
  .woocommerce-billing-fields__field-wrapper,
  .s77-fields-grid {
    grid-template-columns: 1fr !important;
  }
  .woocommerce-billing-fields__field-wrapper .form-row-first,
  .woocommerce-billing-fields__field-wrapper .form-row-last {
    grid-column: 1 / -1 !important;
  }
}

/* Hide ship to different address elements completely */
#ship-to-different-address,
.woocommerce-shipping-fields,
.shipping_address,
.col2-set .col-2 {
  display: none !important;
}

/* Input Fields Styling on Checkout */
.woocommerce-checkout .form-row {
  margin-bottom: 0.85rem;
  padding: 0;
}

.woocommerce-checkout label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.woocommerce-checkout label .required {
  color: #ef4444;
  text-decoration: none;
}

.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea,
.woocommerce-checkout select,
.woocommerce-checkout .select2-container--default .select2-selection--single {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 11px 16px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  transition: all 0.2s ease !important;
}

.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout select:focus {
  border-color: #a32513 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(163, 37, 19, 0.12) !important;
}

.woocommerce-checkout textarea {
  min-height: 90px;
  resize: vertical;
}

/* Order Review Table inside Checkout Card */
.s77-order-review-card table.shop_table,
.s77-checkout-review-table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin-bottom: 1.25rem !important;
}

.s77-checkout-review-table thead th {
  background: #f8fafc;
  font-size: 0.88rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.75rem 1rem !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.s77-checkout-review-table thead tr th:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.s77-checkout-review-table thead tr th:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.s77-checkout-review-table tbody td {
  padding: 1rem 1rem !important;
  border-bottom: 1px solid #f1f5f9 !important;
  vertical-align: middle;
}

.s77-checkout-review-table th.product-name,
.s77-checkout-review-table td.product-name {
  text-align: left !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

.s77-checkout-review-table th.product-quantity,
.s77-checkout-review-table td.product-quantity {
  text-align: left !important;
  color: #475569 !important;
  font-weight: 700 !important;
}

.s77-checkout-review-table th.product-total,
.s77-checkout-review-table td.product-total {
  text-align: right !important;
  color: #0f172a !important;
  font-weight: 800 !important;
}

.s77-order-prod-title {
  color: #0f172a !important;
  font-size: 0.95rem !important;
  display: block;
}

.s77-order-qty-val {
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #334155;
  display: inline-block;
}

/* Standalone Shipping Options below Review Table */
.s77-checkout-shipping-options {
  margin: 1.25rem 0 1.25rem 0 !important;
  padding: 0 !important;
}

.s77-shipping-standalone-list,
#shipping_method {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
  width: 100% !important;
}

.s77-shipping-standalone-item,
#shipping_method li {
  margin: 0 !important;
  padding: 0.85rem 1.15rem !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 14px !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.s77-shipping-standalone-item:hover,
#shipping_method li:hover {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

.s77-shipping-standalone-item input[type="radio"],
#shipping_method input[type="radio"] {
  accent-color: #a32513 !important;
  width: 18px !important;
  height: 18px !important;
  margin-top: 3px !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
}

.s77-shipping-standalone-label,
#shipping_method label {
  cursor: pointer !important;
  margin: 0 !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  line-height: 1.45 !important;
  flex: 1 !important;
}

.s77-shipping-note-red {
  color: #dc2626 !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  margin-left: 6px !important;
}

.s77-order-total-row th,
.s77-order-review-card table.shop_table tr.order-total th {
  padding: 1.25rem 1rem !important;
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  border-top: 2px solid #e2e8f0 !important;
}

.s77-order-total-row td,
.s77-order-review-card table.shop_table tr.order-total td {
  padding: 1.25rem 1rem !important;
  font-size: 1.45rem !important;
  font-weight: 900 !important;
  color: #a32513 !important;
  border-top: 2px solid #e2e8f0 !important;
}

/* Payment Methods & Place Order Button */
#payment {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin-top: 1rem !important;
}

#payment ul.payment_methods {
  display: none !important;
}

.s77-privacy-policy-under-button {
  margin-top: 0.65rem !important;
  margin-bottom: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
}

.woocommerce-privacy-policy-text,
.s77-privacy-policy-under-button .woocommerce-privacy-policy-text,
.s77-privacy-policy-under-button p {
  font-size: 0.82rem !important;
  color: #64748b !important;
  line-height: 1.45 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  text-align: center !important;
  max-width: 92% !important;
  display: block !important;
}

.woocommerce-privacy-policy-text a,
.s77-privacy-policy-under-button a {
  color: #a32513 !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
}

/* Custom Circular Radio Styling for Terms & Conditions Checkbox */
.s77-terms-checkbox-row {
  margin-top: 1rem !important;
  margin-bottom: 0.85rem !important;
}

.s77-custom-terms-radio,
#terms.s77-custom-terms-radio,
.s77-terms-checkbox-label input[type="checkbox"] {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  border-radius: 50% !important;
  border: 2px solid #dc2626 !important; /* Buton radio gol rosu */
  background-color: #ffffff !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
  outline: none !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  display: inline-block !important;
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.15) !important;
}

.s77-custom-terms-radio:hover,
.s77-terms-checkbox-label:hover input[type="checkbox"] {
  border-color: #b91c1c !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}

/* Checked State: Verde plin cu bifa alba */
.s77-custom-terms-radio:checked,
#terms.s77-custom-terms-radio:checked,
.s77-terms-checkbox-label input[type="checkbox"]:checked {
  background-color: #10b981 !important; /* Verde plin */
  border-color: #10b981 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-size: 10px 10px !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35) !important;
  transform: scale(1.05) !important;
}

#place_order {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: #a32513 !important;
  color: #ffffff !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  padding: 1.15rem 2rem !important;
  border-radius: 50px !important;
  border: none !important;
  text-decoration: none !important;
  box-shadow: 0 6px 20px rgba(163, 37, 19, 0.35) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
  text-align: center !important;
}

#place_order:hover {
  background: #8c1e0e !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 28px rgba(163, 37, 19, 0.45) !important;
}

@media (max-width: 991px) {
  .s77-checkout-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .s77-customer-details-card,
  .s77-order-review-card {
    padding: 1.5rem 1.25rem;
  }
}





