/* ====================================
   KOVIA - Coffee Product Page
   Mobile First / Premium / Modern
   ==================================== */

:root {
    --color-primary: #3A261B;
    --color-primary-hover: #2b1c14;
    --color-accent: #C7A15A;
    --color-accent-soft: rgba(199, 161, 90, 0.12);

    --color-bg-main: #FFFDFB;
    --color-surface: #ffffff;
    --color-surface-2: #F8F3EE;

    --color-text-main: #241915;
    --color-text-soft: #5f5149;
    --color-text-muted: #8B7D74;

    --color-border: #EADFD4;
    --color-border-strong: #DDCBB8;

    --color-success: #2E8B57;
    --color-warning: #C27A2C;
    --color-danger: #C94B4B;

    --shadow-xs: 0 2px 8px rgba(58, 38, 27, 0.04);
    --shadow-sm: 0 6px 20px rgba(58, 38, 27, 0.06);
    --shadow-md: 0 14px 36px rgba(58, 38, 27, 0.10);
    --shadow-lg: 0 18px 42px rgba(58, 38, 27, 0.14);

    --radius-xs: 10px;
    --radius-sm: 14px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 30px;

    --container-gap: 14px;

    --font-xs: 12px;
    --font-sm: 13px;
    --font-md: 14px;
    --font-lg: 16px;
    --font-xl: 20px;
    --font-2xl: 24px;

    --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    background: var(--color-bg-main);
}

body.swal2-shown,
body.swal2-height-auto {
    padding-right: 0 !important;
}

.coffee-page {
    direction: rtl;
    text-align: right;
    padding: 12px 0 108px;
    font-family: 'Vazirmatn', IRANSans, Tahoma, sans-serif;
    color: var(--color-text-main);
    background:
        radial-gradient(circle at top right, rgba(199, 161, 90, 0.08), transparent 30%),
        linear-gradient(to bottom, #fffdfa 0%, #fffaf5 100%);
}

.coffee-page .container {
    position: relative;
    z-index: 1;
}

/* ===== Cards ===== */
.coffee-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(234, 223, 212, 0.9);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--container-gap);
    margin-bottom: var(--container-gap);
    backdrop-filter: blur(10px);
}

/* ===== Breadcrumb ===== */
.coffee-breadcrumb {
    margin-bottom: 12px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.coffee-breadcrumb::-webkit-scrollbar {
    display: none;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    list-style: none;
    gap: 0;
    padding: 0;
    margin: 0;
    font-size: var(--font-xs);
    color: var(--color-text-muted);
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: "/";
    margin: 0 8px;
    color: #b8a79b;
}

.breadcrumb a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

/* ===== Hero ===== */
.product-hero {
    overflow: visible;
}

/* ===== Gallery ===== */
.product-gallery-box {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(145deg, #fffaf5, #f5ede6);
    border: 1px solid rgba(221, 203, 184, 0.9);
    margin-bottom: 12px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xs);
}

.main_img_gallery {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    padding: 10px;
}

.product-gallery-box:hover .main_img_gallery {
    transform: scale(1.03);
}

.gallery-thumbs {
    margin-top: 8px;
}

.gallery-thumbs .row {
    --bs-gutter-x: 8px;
    --bs-gutter-y: 8px;
}

.img-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid transparent;
    background: #fff;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-xs);
}

.img-thumb:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

/* ===== Badges ===== */
.product-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: var(--font-xs);
    font-weight: 800;
    letter-spacing: -0.1px;
    color: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.10);
}

.product-badge.badge-out,
.product-badge.badge-stock {
    top: 10px;
    right: 10px;
}

.product-badge.badge-out {
    background: var(--color-danger);
}

.product-badge.badge-stock {
    background: linear-gradient(135deg, #4b3427, #3A261B);
}

.product-badge.badge-coffee {
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #C7A15A, #b98d3d);
    color: #2d2015;
}

/* ===== Secondary actions ===== */
.secondary-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 4px;
}

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-text-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
}

.icon-btn:hover {
    background: var(--color-surface-2);
    color: var(--color-primary);
    border-color: var(--color-border-strong);
}

.icon-btn.favorites_heart.active i {
    color: var(--color-danger);
}

/* ===== Product header ===== */
.product-header {
    margin-bottom: 12px;
}

.product-title {
    font-size: 21px;
    line-height: 1.55;
    font-weight: 900;
    letter-spacing: -0.2px;
    color: var(--color-text-main);
    margin: 0 0 6px;
}

.product-subtitle {
    margin: 0;
    font-size: var(--font-sm);
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* ===== Meta row ===== */
.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.meta-row .product-badge {
    position: static;
    min-height: auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--color-accent-soft);
    color: var(--color-primary);
    border: 1px solid rgba(199, 161, 90, 0.32);
    box-shadow: none;
    font-size: var(--font-xs);
    font-weight: 800;
}

/* ===== Spec summary ===== */
.spec-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.spec-chip {
    background: linear-gradient(180deg, #fff, #fcf8f4);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.spec-chip .label {
    font-size: 11px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.spec-chip .value {
    font-size: 14px;
    font-weight: 800;
    color: var(--color-text-main);
    line-height: 1.6;
}

/* ===== Purchase box ===== */
.purchase-box {
    position: relative;
    border: 1px solid var(--color-border);
    border-radius: 22px;
    padding: 14px;
    background: linear-gradient(180deg, #fffdfb 0%, #f9f3ee 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.stock-line {
    margin-bottom: 14px;
}

.stock-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--color-text-soft);
    font-weight: 800;
}

#stock-count {
    font-size: 13px;
    color: var(--color-primary);
}

.stock-bar-wrap {
    width: 100%;
    height: 7px;
    background: #eadfd4;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 8px;
}

.stock-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), #6b4430);
    border-radius: inherit;
    transition: width 0.45s ease;
}

.stock-status {
    display: block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.7;
}

/* ===== Price ===== */
.price-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    margin-bottom: 14px;
}

.old-price {
    font-size: 13px;
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.current-price {
    font-size: 26px;
    line-height: 1.2;
    font-weight: 950;
    color: var(--color-text-main);
    letter-spacing: -0.5px;
}

.current-price span,
.old-price span {
    font-size: 12px;
    font-weight: 700;
    margin-right: 4px;
    color: var(--color-text-muted);
}

/* ===== Inputs ===== */
.coffee-input {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: rgba(255,255,255,0.96);
    font-family: inherit;
    font-size: 14px;
    color: var(--color-text-main);
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    outline: none;
    box-shadow: none;
}

.coffee-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(199, 161, 90, 0.14);
    background: #fff;
}

select.coffee-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-left: 40px;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--color-primary) 50%),
        linear-gradient(135deg, var(--color-primary) 50%, transparent 50%);
    background-position:
        16px calc(50% - 3px),
        10px calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

/* ===== Buy box final layout ===== */
.buy-controls-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr 104px;
    gap: 10px;
    align-items: end;
    margin-bottom: 12px;
}

.buy-controls-grid.no-grind {
    grid-template-columns: 1fr 104px;
}

.buy-field {
    min-width: 0;
}

.buy-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 800;
    color: var(--color-text-soft);
    line-height: 1.4;
}

.purchase-box .coffee-input {
    height: 42px;
    min-height: 42px;
    padding: 8px 12px;
    border-radius: 14px;
    font-size: 14px;
}

/* ===== Quantity selector ===== */
.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
    width: 104px;
    height: 44px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
}

.quantity-field .quantity-selector {
    width: 100%;
    height: 42px;
    border-radius: 14px;
}

.quantity-selector .qty-btn,
.quantity-selector button {
    width: 32px;
    height: 100%;
    border: 0;
    background: #f8f2ec;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1;
    transition: var(--transition);
}

.quantity-field .quantity-selector .qty-btn {
    width: 30px;
}

.quantity-selector .qty-btn:hover,
.quantity-selector button:hover {
    background: #efe4d7;
}

.quantity-selector .qty-btn i,
.quantity-selector button i {
    font-size: 11px;
    line-height: 1;
    margin: 0;
}

.quantity-selector .qty-input,
.quantity-selector input {
    flex: 1;
    height: 100%;
    border: 0;
    outline: none;
    background: #fff;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    color: var(--color-text-main);
    padding: 0;
    margin: 0;
    -moz-appearance: textfield;
}

.quantity-field .quantity-selector .qty-input {
    font-size: 14px;
    font-weight: 800;
}

.quantity-selector .qty-input::-webkit-inner-spin-button,
.quantity-selector .qty-input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button,
.quantity-selector input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ===== Buttons ===== */
.coffee-btn,
.coffee-btn-secondary {
    min-height: 46px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 900;
    transition: var(--transition);
}

.coffee-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--color-primary), #4a3125);
    color: #fff;
    border: none;
    padding: 12px 14px;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(58, 38, 27, 0.16);
}

.coffee-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--color-primary-hover), #241811);
    transform: translateY(-1px);
}

.coffee-btn:disabled {
    background: #d9d1ca;
    color: #7c7068;
    box-shadow: none;
    cursor: not-allowed;
}

.action-buttons-wrapper {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-top: 2px;
}

.action-buttons-wrapper .coffee-btn,
.action-buttons-wrapper .coffee-btn-secondary {
    min-height: 42px;
    height: 42px;
    margin: 0;
    padding: 0 12px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 14px;
    font-size: 13px;
}

.action-buttons-wrapper .coffee-btn {
    flex: 1.4;
}

.action-buttons-wrapper .coffee-btn-secondary {
    flex: 1;
    background: #fff;
    color: var(--color-primary);
    border: 1px solid var(--color-border-strong);
    box-shadow: none;
}

.action-buttons-wrapper .coffee-btn-secondary:hover {
    background: #f9f4ee;
    color: var(--color-primary-hover);
    border-color: #cdb59a;
}

/* ===== Note ===== */
.product-note {
    margin-top: 14px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.62);
    border: 1px dashed var(--color-border-strong);
    font-size: 12px;
    color: var(--color-text-muted);
    display: flex;
    gap: 8px;
    align-items: flex-start;
    line-height: 1.9;
}

.product-note i {
    color: var(--color-accent);
    margin-top: 3px;
    flex-shrink: 0;
}

/* ===== Tabs card ===== */
.tabs-card {
    padding: 0;
    overflow: hidden;
}

.tabs-header {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    border-bottom: 1px solid var(--color-border);
    background: linear-gradient(180deg, #fdf8f3, #faf3ed);
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x proximity;
}

.tabs-header::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    flex: 0 0 auto;
    min-width: 112px;
    padding: 14px 14px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 13px;
    font-weight: 800;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    scroll-snap-align: start;
}

.tab-btn.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-accent);
    background: rgba(255,255,255,0.55);
}

.tab-panel {
    display: none;
    padding: 16px 14px;
    animation: fadeIn 0.35s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Tab content ===== */
.section-title {
    font-size: 18px;
    font-weight: 900;
    line-height: 1.7;
    margin: 0 0 14px;
    position: relative;
    padding-right: 12px;
    color: var(--color-text-main);
}

.section-title::before {
    content: "";
    position: absolute;
    right: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--color-accent), var(--color-primary));
}

.rich-desc {
    line-height: 2;
    color: var(--color-text-soft);
    font-size: 14px;
    text-align: justify;
}

.rich-desc p,
.rich-desc li {
    line-height: 2;
}

.rich-desc img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.detail-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: linear-gradient(180deg, #fff, #fcf8f4);
    border: 1px solid var(--color-border);
    padding: 12px 14px;
    border-radius: 15px;
    font-size: 13px;
    line-height: 1.85;
}

.detail-list .k {
    flex: 0 0 88px;
    color: var(--color-text-muted);
    font-weight: 700;
}

.detail-list .v {
    flex: 1;
    font-weight: 800;
    color: var(--color-text-main);
    min-width: 0;
    word-break: break-word;
}

/* ===== Comments ===== */
.comment-card {
    background: linear-gradient(180deg, #fff, #fcf8f4);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 10px;
}

.comment-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.comment-head img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f2e7dc;
}

.comment-name {
    font-weight: 900;
    font-size: 14px;
    color: var(--color-text-main);
}

.comment-date {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.comment-text {
    line-height: 1.95;
    font-size: 13px;
    color: var(--color-text-soft);
    margin: 0;
}

textarea.coffee-input {
    min-height: 120px;
    height: auto;
    resize: vertical;
    margin-bottom: 12px;
    padding-top: 12px;
    line-height: 1.9;
}

/* ===== Modal tweaks ===== */
.modal-content {
    border-radius: 20px;
    border: 1px solid var(--color-border);
}

.modal-header {
    border-bottom-color: var(--color-border);
}

.modal-body p {
    color: var(--color-text-soft);
}

/* ====================================
   Mobile Sticky Purchase Bar
   ==================================== */
@media (max-width: 991px) {
    body {
        padding-bottom: 112px !important;
    }

    .coffee-page {
        padding-bottom: 118px;
    }

    .coffee-card {
        border-radius: 20px;
    }

    .purchase-box {
        position: fixed !important;
        left: 10px !important;
        right: 10px !important;
        bottom: calc(8px + env(safe-area-inset-bottom)) !important;
        z-index: 9999 !important;
        width: auto !important;
        margin: 0 !important;
        padding: 10px !important;
        border-radius: 20px !important;
        border: 1px solid rgba(221, 203, 184, 0.95) !important;
        background: rgba(255, 253, 251, 0.96) !important;
        backdrop-filter: blur(14px) !important;
        -webkit-backdrop-filter: blur(14px) !important;
        box-shadow: 0 -4px 24px rgba(58, 38, 27, 0.10), 0 10px 30px rgba(58, 38, 27, 0.08) !important;
    }

    .purchase-box .stock-line,
    .purchase-box .product-note {
        display: none !important;
    }

    .price-box {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 8px !important;
    }

    .old-price {
        font-size: 11px !important;
    }

    .current-price {
        font-size: 18px !important;
        line-height: 1.2;
    }

    .current-price span,
    .old-price span {
        font-size: 11px;
    }

    .buy-controls-grid {
        grid-template-columns: 1.15fr 1fr 88px;
        gap: 8px;
        margin-bottom: 8px;
    }

    .buy-controls-grid.no-grind {
        grid-template-columns: 1fr 88px;
    }

    .buy-label {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .purchase-box .coffee-input {
        height: 36px;
        min-height: 36px;
        padding: 6px 10px;
        font-size: 13px;
        border-radius: 12px;
    }

    .quantity-field .quantity-selector {
        height: 36px;
        border-radius: 12px;
    }

    .quantity-field .quantity-selector .qty-btn {
        width: 26px;
    }

    .quantity-field .quantity-selector .qty-btn i {
        font-size: 10px;
    }

    .quantity-field .quantity-selector .qty-input {
        font-size: 13px;
    }

    .action-buttons-wrapper {
        gap: 8px;
        margin-top: 0;
    }

    .action-buttons-wrapper .coffee-btn,
    .action-buttons-wrapper .coffee-btn-secondary {
        min-height: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 12px;
        padding: 0 10px;
    }

    .product-title {
        font-size: 20px;
    }

    .product-subtitle {
        font-size: 12px;
    }

    .spec-grid {
        grid-template-columns: 1fr;
    }

    .detail-list li {
        padding: 11px 12px;
    }

    .detail-list .k {
        flex-basis: 78px;
    }
}

/* ===== Very small mobile ===== */
@media (max-width: 420px) {
    .buy-controls-grid {
        grid-template-columns: 1fr 1fr 82px;
        gap: 6px;
    }

    .buy-label {
        font-size: 10px;
    }

    .purchase-box .coffee-input {
        font-size: 12px;
        padding: 6px 8px;
    }

    .quantity-field .quantity-selector {
        height: 34px;
    }

    .action-buttons-wrapper .coffee-btn,
    .action-buttons-wrapper .coffee-btn-secondary {
        font-size: 11px;
    }
}

/* ====================================
   Tablet
   ==================================== */
@media (min-width: 768px) {
    .coffee-page {
        padding-top: 18px;
    }

    .coffee-card {
        padding: 18px;
    }

    .product-title {
        font-size: 24px;
    }

    .spec-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .detail-list {
        grid-template-columns: 1fr 1fr;
    }

    .tab-panel {
        padding: 20px 18px;
    }
}

/* ====================================
   Desktop
   ==================================== */
@media (min-width: 992px) {
    body {
        padding-bottom: 0 !important;
    }

    .coffee-page {
        padding: 24px 0 48px;
    }

    .coffee-card {
        padding: 22px;
        margin-bottom: 18px;
    }

    .product-hero {
        border-radius: 28px;
    }

    .product-title {
        font-size: 30px;
        line-height: 1.45;
    }

    .product-subtitle {
        font-size: 14px;
    }

    .meta-row {
        margin-bottom: 18px;
    }

    .spec-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 20px;
    }

    .spec-chip {
        min-height: 84px;
        justify-content: center;
    }

    .purchase-box {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        margin-top: 4px !important;
        padding: 18px !important;
        border-radius: 22px !important;
        background: linear-gradient(180deg, #fffdfb 0%, #f9f3ee 100%) !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }

    .purchase-box .stock-line,
    .purchase-box .product-note {
        display: block !important;
    }

    .price-box {
        margin-bottom: 16px;
    }

    .old-price {
        font-size: 15px;
    }

    .current-price {
        font-size: 30px;
    }

    .buy-controls-grid {
        grid-template-columns: 1.15fr 1fr 104px;
        gap: 10px;
        margin-bottom: 12px;
    }

    .buy-controls-grid.no-grind {
        grid-template-columns: 1fr 104px;
    }

    .purchase-box .coffee-input {
        height: 42px;
        min-height: 42px;
        font-size: 14px;
        border-radius: 14px;
    }

    .quantity-field .quantity-selector {
        height: 42px;
        border-radius: 14px;
    }

    .quantity-field .quantity-selector .qty-btn {
        width: 30px;
    }

    .action-buttons-wrapper {
        gap: 10px;
        margin-top: 4px;
    }

    .action-buttons-wrapper .coffee-btn,
    .action-buttons-wrapper .coffee-btn-secondary {
        min-height: 42px;
        height: 42px;
        font-size: 13px;
        border-radius: 14px;
    }

    .tabs-header {
        padding: 0 8px;
    }

    .tab-btn {
        flex: 1 1 0;
        min-width: 0;
        font-size: 14px;
        padding: 16px 18px;
    }

    .tab-panel {
        padding: 24px 22px;
    }

    .section-title {
        font-size: 22px;
    }

    .rich-desc {
        font-size: 15px;
    }

    .detail-list li {
        font-size: 14px;
        padding: 14px 16px;
    }

    .comment-card {
        padding: 16px;
    }

    .comment-text {
        font-size: 14px;
    }
}

/* ====================================
   Large Desktop
   ==================================== */
@media (min-width: 1400px) {
    .product-title {
        font-size: 32px;
    }

    .current-price {
        font-size: 32px;
    }

    .coffee-card {
        padding: 24px;
    }
}