/* ==========================================================================
   pages/products.css — Product Detail & Products Index Specific Styles
   KC INTERPRESS

   Scope: Gallery, Calculator, Tabs, Modals, Sticky Bottom Bar,
          Process Steps — เฉพาะ products/* pages
   ========================================================================== */

/* --------------------------------------------------------------------------
   PAGE BODY OVERRIDE (product pages use Sarabun fallback)
   -------------------------------------------------------------------------- */
main { font-family: 'Sarabun', 'Prompt', sans-serif; background-color: var(--white); padding-bottom: 100px; }

/* --------------------------------------------------------------------------
   PRODUCT LAYOUT (detail page: image + info grid)
   -------------------------------------------------------------------------- */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 50px; }

/* Gallery */
.gallery-wrap   { display: flex; gap: 20px; }
.gallery-thumbs { display: flex; flex-direction: column; gap: 10px; width: 80px; }
.gallery-thumb  { border: 2px solid var(--gray-200); border-radius: var(--radius-md); cursor: pointer; padding: 10px; text-align: center; transition: var(--transition); }
.gallery-thumb.active { border-color: var(--orange); }
.gallery-main   { flex: 1; border: 1px solid var(--gray-200); border-radius: var(--radius-md); display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 400px; position: relative; background: var(--gray-50); }
.gallery-expand { position: absolute; top: 15px; right: 15px; background: var(--white); border: 1px solid var(--gray-200); border-radius: 50%; width: 40px; height: 40px; cursor: pointer; }

.product-info h1 { font-size: 28px; color: var(--black); margin-bottom: 15px; line-height: 1.3; }

/* --------------------------------------------------------------------------
   PRICE CALCULATOR
   -------------------------------------------------------------------------- */
.premium-order-container { background: #fdfdfd; border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 30px; margin-bottom: 50px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); }
.step-label { display: inline-block; background: var(--gray-200); color: var(--gray-600); padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: bold; margin-bottom: 10px; }

.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.form-select-modal { border: 1px solid var(--gray-200); padding: 12px 15px; border-radius: var(--radius-md); cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: var(--white); }
.form-select-modal:hover { border-color: var(--orange); }

.price-options-list { display: grid; gap: 10px; }
.price-card { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--gray-200); padding: 15px; border-radius: var(--radius-md); cursor: pointer; background: var(--white); transition: var(--transition); }
.price-card input[type="radio"] { display: none; }
.price-card:hover  { border-color: var(--orange); }
.price-card.active { border: 2px solid var(--primary-green); background: #f0fdf4; }
.card-left  { display: flex; align-items: center; gap: 10px; }
.card-right { text-align: right; }
.current-price-card { font-size: 18px; font-weight: bold; color: var(--primary-green); }
.unit-price-card    { display: block; font-size: 12px; color: var(--gray-400); }

.custom-qty-section { display: flex; justify-content: space-between; align-items: center; background: var(--white); border: 1px dashed var(--gray-200); padding: 15px; border-radius: var(--radius-md); margin-top: 20px; }
.btn-custom-qty-new { background: var(--black); color: var(--white); border: none; padding: 8px 15px; border-radius: var(--radius-sm); cursor: pointer; }
.help-icon     { background: var(--gray-100); width: 24px; height: 24px; display: inline-flex; justify-content: center; align-items: center; border-radius: 50%; font-weight: bold; color: var(--gray-600); margin-right: 10px; }
.custom-qty-info { display: flex; align-items: center; }

/* --------------------------------------------------------------------------
   TABS
   -------------------------------------------------------------------------- */
.tabs-nav { display: flex; border-bottom: 1px solid var(--gray-200); margin-bottom: 20px; }
.tab-link { background: none; border: none; padding: 10px 20px; cursor: pointer; font-weight: 600; color: var(--gray-400); border-bottom: 2px solid transparent; transition: var(--transition); font-family: var(--font-th); }
.tab-link.active { color: var(--orange); border-bottom-color: var(--orange); }
.tab-pane        { display: none; }
.tab-pane.active { display: block; }

/* --------------------------------------------------------------------------
   MODALS
   -------------------------------------------------------------------------- */
.modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); align-items: center; justify-content: center; }
.modal-content { background: var(--white); width: 90%; max-width: 600px; border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.modal-header { padding: 15px 20px; border-bottom: 1px solid var(--gray-100); display: flex; justify-content: space-between; align-items: center; }
.close-modal { font-size: 24px; cursor: pointer; color: var(--gray-400); }
.modal-body   { padding: 20px; max-height: 60vh; overflow-y: auto; }
.modal-footer { padding: 15px 20px; border-top: 1px solid var(--gray-100); text-align: right; }

.size-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.size-card { border: 2px solid var(--gray-100); border-radius: var(--radius-md); cursor: pointer; text-align: center; padding: 10px; position: relative; }
.size-card img { max-width: 100%; border-radius: var(--radius-sm); }
.size-card.active { border-color: var(--orange); background: #fffaf5; }
.check-mark { display: none; position: absolute; top: 10px; right: 10px; background: var(--orange); color: var(--white); width: 24px; height: 24px; border-radius: 50%; line-height: 24px; }
.size-card.active .check-mark { display: block; }
.btn-confirm-green, .btn-confirm-teal { background: var(--primary-green); color: var(--white); border: none; padding: 10px 20px; border-radius: var(--radius-sm); cursor: pointer; font-size: 16px; width: 100%; }

/* --------------------------------------------------------------------------
   STICKY BOTTOM BAR
   -------------------------------------------------------------------------- */
.premium-bottom-bar { position: fixed; bottom: 0; left: 0; width: 100%; background: var(--white); box-shadow: 0 -5px 20px rgba(0,0,0,0.1); transform: translateY(100%); transition: transform 0.4s ease-in-out; z-index: 9998; border-top: 3px solid var(--orange); }
.premium-bottom-bar.show-bar { transform: translateY(0); }
.premium-alert-strip { background: #fefce8; padding: 8px; text-align: center; font-size: 13px; border-bottom: 1px solid #fef08a; display: flex; justify-content: center; align-items: center; gap: 10px; }
.premium-alert-strip svg { width: 16px; height: 16px; fill: var(--orange); }

.premium-bar-content { max-width: var(--container); margin: 0 auto; padding: 15px; display: flex; justify-content: space-between; align-items: center; }
.premium-col-main .premium-title { font-weight: bold; font-size: 18px; }
.premium-qty-badge { color: var(--gray-400); font-size: 14px; }
.premium-col-loc { display: flex; align-items: center; color: var(--gray-600); font-size: 14px; }
.premium-col-loc svg { width: 18px; height: 18px; fill: var(--gray-400); margin-right: 5px; }
.premium-col-price { display: flex; gap: 20px; font-size: 14px; }
.p-row { display: flex; flex-direction: column; align-items: flex-end; }
.p-row.total span:last-child { font-size: 20px; font-weight: bold; color: var(--orange); }
.btn-premium-cart { background: var(--orange); color: var(--white); text-decoration: none; padding: 12px 30px; border-radius: var(--radius-md); font-weight: bold; font-size: 16px; }

/* --------------------------------------------------------------------------
   PROCESS STEPS
   -------------------------------------------------------------------------- */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 24px; margin-top: 40px; }
.process-step { text-align: center; padding: 30px 20px; background: var(--white); border-radius: var(--radius-lg); box-shadow: 0 4px 15px rgba(0,0,0,0.03); position: relative; }
.step-num { width: 50px; height: 50px; background: var(--orange); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: bold; margin: 0 auto 20px; box-shadow: 0 4px 10px rgba(249,115,22,0.30); }
.process-step h3 { font-family: var(--font-th); font-size: 18px; margin-bottom: 10px; }
.process-step p  { font-family: var(--font-th); font-size: 14px; color: var(--gray-600); }

/* --------------------------------------------------------------------------
   RESPONSIVE (product pages)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .product-layout      { grid-template-columns: 1fr; }
    .premium-order-container { padding: 15px; }
    .premium-bar-content { flex-direction: column; gap: 15px; text-align: center; }
    .premium-col-price   { flex-direction: column; gap: 5px; align-items: center; }
    .p-row               { align-items: center; flex-direction: row; gap: 10px; }
}

/* --------------------------------------------------------------------------
   PRODUCTS INDEX PAGE
   -------------------------------------------------------------------------- */

/* Breadcrumb */
.products-breadcrumb-sep { margin: 0 8px; color: var(--gray-400); }
.products-breadcrumb-current { color: var(--orange) !important; }

/* CTA Section */
.products-cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 auto;
}

.products-cta-actions a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-family: var(--font-th);
    font-weight: 500;
    border-radius: 100px;
    transition: var(--transition);
    text-decoration: none;
}

.products-cta-actions .btn-primary {
    background: transparent;
    color: var(--white);
    border: 1.5px solid var(--orange);
}
.products-cta-actions .btn-primary:hover {
    background: var(--orange);
}

.products-cta-actions .btn-line {
    background: transparent !important;
    color: #00B900 !important;
    border: 1.5px solid #00B900 !important;
}
.products-cta-actions .btn-line:hover {
    background: #00B900 !important;
    color: var(--white) !important;
}

.products-cta-actions .btn-cta {
    background: transparent;
    color: var(--white);
    border: 1.5px solid var(--gray-400);
}
.products-cta-actions .btn-cta:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

/* ==========================================================================
   BUSINESS CARDS PAGE
   ========================================================================== */

/* Breadcrumb */
.products-breadcrumb-sep     { margin: 0 8px; color: var(--gray-400); }
.products-breadcrumb-current { color: var(--orange) !important; }

/* --------------------------------------------------------------------------
   PRODUCT LAYOUT (Gallery + Info)
   -------------------------------------------------------------------------- */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin: 40px 0;
}

/* Gallery */
.gallery-wrap { display: flex; gap: 12px; }

.gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gallery-thumb {
    width: 72px;
    height: 72px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-thumb.active  { border-color: var(--orange); }
.gallery-thumb:hover   { border-color: var(--gray-400); }

.gallery-main {
    flex: 1;
    position: relative;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-expand {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--gray-600);
    transition: var(--transition);
}

.gallery-expand:hover { background: var(--white); color: var(--black); }

.img-ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--gray-400);
    font-family: var(--font-th);
    font-size: 13px;
    gap: 6px;
}

/* Product Info */
.product-info h1 {
    font-family: var(--font-th);
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    color: var(--black);
    line-height: 1.3;
    margin-bottom: 16px;
}

.product-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-info h3 i { font-size: 15px; color: var(--orange); }

.product-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-info h4 i { font-size: 14px; color: var(--orange); }

.product-info p {
    font-family: var(--font-th);
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 16px;
}

.product-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
}

.product-info ul li {
    position: relative;
    padding-left: 14px;
    font-family: var(--font-th);
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 4px;
}

.product-info ul li span {
    position: absolute;
    left: 0;
    color: var(--gray-400);
}

/* --------------------------------------------------------------------------
   CALC SECTION
   -------------------------------------------------------------------------- */
.calc-section { margin: 52px 0 40px; }

.calc-section-heading {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--black);
    padding-bottom: 14px;
}

.calc-section-heading h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
    margin: 0;
}

.calc-section-heading span {
    font-size: 13px;
    color: var(--gray-400);
}

.calc-shell {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 24px;
    align-items: start;
}

/* Spec Panel */
.spec-panel {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
}

.spec-panel-head {
    background: var(--black);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.spec-panel-head span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--gray-400);
}

.step-num {
    width: 20px;
    height: 20px;
    background: var(--orange);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
}

.spec-panel-body { padding: 0; }

.spec-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: background 0.14s;
    gap: 12px;
}

.spec-field:last-child { border-bottom: none; }
.spec-field:hover, .spec-field.selected { background: var(--gray-50); }

.spec-field-left { flex: 1; min-width: 0; }

.spec-field-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 3px;
}

.spec-field-val {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spec-field-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.spec-edit-btn {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-600);
    background: var(--gray-100);
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    pointer-events: none;
    letter-spacing: 0.2px;
}

.spec-field:hover .spec-edit-btn { background: var(--gray-200); color: var(--black); }

/* Price Panel */
.price-panel {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
}

.price-panel-head {
    background: var(--black);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-panel-head-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-panel-head span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--gray-400);
}

.vat-note {
    font-size: 11px;
    color: var(--gray-400);
    background: rgba(255,255,255,0.1);
    padding: 3px 8px;
    border-radius: 3px;
    letter-spacing: 0.3px;
}

.price-table-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 10px 24px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.price-table-header span {
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.price-table-header span:nth-child(2),
.price-table-header span:nth-child(3) { text-align: right; }

.qty-rows-wrap { padding: 6px 0; }

.qty-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    padding: 11px 24px;
    cursor: pointer;
    transition: background 0.12s;
    border-left: 3px solid transparent;
}

.qty-row input[type="radio"] { display: none; }
.qty-row:hover { background: var(--gray-50); }
.qty-row.active { background: rgba(249,115,22,0.05); border-left-color: var(--orange); }
.qty-rows-wrap .qty-row + .qty-row { border-top: 1px solid var(--gray-100); }

.qty-row-qty { display: flex; align-items: center; gap: 8px; }

.qty-row-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid var(--gray-300);
    flex-shrink: 0;
    transition: all 0.12s;
}

.qty-row.active .qty-row-dot { border-color: var(--orange); background: var(--orange); }

.qty-row-num { font-size: 15px; font-weight: 600; color: var(--black); }
.qty-row-unit { font-size: 12px; color: var(--gray-400); }

.qty-row-pop {
    font-size: 10px;
    font-weight: 700;
    color: var(--orange);
    background: rgba(249,115,22,0.1);
    padding: 2px 7px;
    border-radius: 3px;
}

.qty-row-total { text-align: right; font-size: 15px; font-weight: 700; color: var(--black); }
.qty-row-unit-price { text-align: right; font-size: 13px; color: var(--gray-600); }

.price-panel-footer {
    border-top: 1px solid var(--gray-200);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gray-50);
    gap: 12px;
}

.footer-text strong { display: block; font-size: 13px; font-weight: 700; color: var(--black); margin-bottom: 2px; }
.footer-text span   { font-size: 12px; color: var(--gray-400); }

.btn-inquire {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    color: var(--black);
    border: 1.5px solid var(--gray-300);
    padding: 9px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
    flex-shrink: 0;
}

.btn-inquire:hover { border-color: var(--orange); color: var(--orange); background: var(--gray-50); }

/* --------------------------------------------------------------------------
   MODALS
   -------------------------------------------------------------------------- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--white);
    border-radius: 8px;
    width: 100%;
    max-width: 560px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--black);
}

.modal-header h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.close-modal {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    color: var(--gray-400);
    font-size: 16px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.close-modal:hover { background: rgba(255,255,255,0.2); color: var(--white); }

.modal-body { padding: 24px; }

.category-tabs {
    display: flex;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}

.category-tab {
    flex: 1;
    padding: 10px 16px;
    text-align: center;
    cursor: pointer;
    background: var(--gray-50);
    transition: background 0.15s;
    border-right: 1px solid var(--gray-200);
}

.category-tab:last-child { border-right: none; }
.category-tab .tab-title { font-size: 13px; font-weight: 600; color: var(--gray-600); }
.category-tab.active { background: var(--black); }
.category-tab.active .tab-title { color: var(--white); }

.size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }

.size-card {
    position: relative;
    border: 1.5px solid var(--gray-200);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.15s;
    background: var(--white);
}

.size-card:hover { border-color: var(--gray-400); }
.size-card.active { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249,115,22,0.1); }

.size-img-wrap {
    position: relative;
    background: var(--gray-50);
    aspect-ratio: 4/3;
    overflow: hidden;
}

.size-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gsm-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: var(--black);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.size-info { padding: 10px 12px; }

.size-dim {
    font-size: 13px;
    font-weight: 600;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.tag-yellow {
    font-size: 10px;
    font-weight: 700;
    background: rgba(249,115,22,0.1);
    color: var(--orange);
    padding: 2px 7px;
    border-radius: 3px;
}

.check-mark {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    background: var(--orange);
    color: var(--white);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.size-card.active .check-mark { display: flex; }

.modal-footer {
    padding: 16px 24px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
}

.btn-confirm-green,
.btn-confirm-teal {
    background: var(--orange);
    color: var(--white);
    border: none;
    padding: 10px 28px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-confirm-green:hover,
.btn-confirm-teal:hover { background: var(--black); }

/* --------------------------------------------------------------------------
   BOTTOM STICKY BAR
   -------------------------------------------------------------------------- */
.premium-bottom-bar {
    position: fixed;
    bottom: -160px;
    left: 0;
    right: 0;
    z-index: 900;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 -2px 16px rgba(0,0,0,0.08);
    transition: bottom 0.26s ease;
}

.premium-bottom-bar.show-bar { bottom: 0; }

.premium-alert-strip {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    padding: 7px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.premium-alert-strip svg { width: 14px; height: 14px; fill: var(--gray-400); flex-shrink: 0; }
.premium-alert-strip > span { font-size: 12px; color: var(--gray-600); }
.alert-highlight { font-weight: 700; color: var(--black); }

.premium-bar-content {
    display: flex;
    align-items: center;
    padding: 0 20px;
    height: 72px;
    gap: 0;
}

.premium-col-main {
    flex: 1;
    min-width: 0;
    padding-right: 16px;
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.premium-title { font-size: 14px; font-weight: 700; color: var(--black); }
.premium-qty-badge { font-size: 12px; color: var(--gray-400); margin-top: 1px; }
.premium-qty-badge span { font-weight: 600; color: var(--gray-600); }

.premium-col-loc {
    padding: 0 16px;
    border-right: 1px solid var(--gray-200);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.loc-text-premium {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--gray-600);
    font-weight: 500;
}

.loc-text-premium svg { width: 13px; height: 13px; fill: var(--gray-400); flex-shrink: 0; }

.premium-col-price {
    padding: 0 16px;
    flex-shrink: 0;
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.p-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    font-size: 12px;
    color: var(--gray-400);
    line-height: 1.5;
}

.p-row span:first-child { color: var(--gray-400); font-weight: 400; }
.p-row span:last-child  { color: var(--gray-600); font-weight: 600; }

.p-row.total {
    font-size: 13px;
    border-top: 1px solid var(--gray-100);
    margin-top: 3px;
    padding-top: 3px;
}

.p-row.total span:first-child { color: var(--black); font-weight: 700; }
.p-row.total span:last-child  { color: var(--orange); font-size: 16px; font-weight: 700; }

.btn-wrap { padding-left: 16px; flex-shrink: 0; }

.btn-premium-cart {
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    border: none;
    padding: 11px 22px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
    white-space: nowrap;
}

.btn-premium-cart:hover { background: var(--black); color: var(--white); }

/* --------------------------------------------------------------------------
   TABS
   -------------------------------------------------------------------------- */
.tabs-container { margin: 40px 0; }

.tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 24px;
}

.tab-link {
    padding: 12px 24px;
    font-family: var(--font-en);
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-400);
    background: none;
    border: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
}

.tab-link:hover { color: var(--black); }
.tab-link.active { color: var(--black); border-bottom-color: var(--orange); }

.tab-pane { display: none; }
.tab-pane.active { display: block; }

.desc-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.desc-col p { font-family: var(--font-th); font-size: 15px; color: var(--gray-600); line-height: 1.6; }

/* Related Products */
.related-title {
    margin-top: 80px;
    margin-bottom: 24px;
    font-family: var(--font-en);
    font-size: 22px;
    font-weight: 700;
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 10px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .product-layout { grid-template-columns: 1fr; }
    .calc-shell { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .premium-bar-content { height: auto; padding: 14px 16px; flex-wrap: wrap; gap: 10px; }
    .products-grid { grid-template-columns: 1fr 1fr; }
}