/* ── Reset & Base ──────────────────────────────────────────── */

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #1e293b;
    margin: 0;
    padding: 0;
}

/* ── Typography ────────────────────────────────────────────── */

h1,
h2,
h3,
h4 {
    margin: 0;
    line-height: 1.3;
}

p {
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ── Tab Navigation ────────────────────────────────────────── */

.tab-btn {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s ease, border-color 0.2s ease;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: #dd0e1c;
}

.tab-btn.active {
    color: #1a1a2e;
    border-bottom-color: #dd0e1c;
}

/* ── Material Badge Colour Variants ────────────────────────── */

.mat-badge {
    border-radius: 4px;
    display: inline-block;
}

.mat-badge.mat-crs {
    background: #f1f5f9;
    color: #334155;
}

.mat-badge.mat-eg {
    background: #eff6ff;
    color: #1d4ed8;
}

.mat-badge.mat-galv {
    background: #ecfeff;
    color: #0e7490;
}

.mat-badge.mat-304 {
    background: #ecfdf5;
    color: #065f46;
}

.mat-badge.mat-316 {
    background: #f0fdfa;
    color: #115e59;
}

.mat-badge.mat-al5005 {
    background: #f5f3ff;
    color: #5b21b6;
}

.mat-badge.active {
    background: #dd0e1c !important;
    color: #ffffff !important;
}

/* ── Main Product Image ────────────────────────────────────── */

#main-image {
    transition: opacity 0.2s ease;
}

/* ── Header ────────────────────────────────────────────────── */

header {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

/* ── Quantity Input — Remove Browser Spinners ──────────────── */

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* ── Line Clamp (2 lines) ──────────────────────────────────── */

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Product Card Hover ────────────────────────────────────── */

.tw-product-card {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.tw-product-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.tw-product-card:hover .tw-product-card-img {
    transform: scale(1.05);
}

.tw-product-card-img {
    transition: transform 0.3s ease;
}

.btn-custom-quote{
    border: 2px solid;
    color: #000;
    line-height: 37px;
    height: 40px;
}
.btn-add-cart{
    height: 48px;
    line-height: 48px;
}
.qty-section{
    border: 2px solid rgb(226 232 240 / var(--tw-border-opacity, 1));
}
button.tab-btn:focus{
    box-shadow: none !important;
}
.border{
     border: 1px solid rgb(226 232 240 / var(--tw-border-opacity, 1));
}
/* ── Responsive Utilities ──────────────────────────────────── */

@media (max-width: 1024px) {
    .tw-product-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .bulk-tiers-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .material-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .trust-badges-grid {
        grid-template-columns: 1fr !important;
    }

    .cut-calc-grid {
        grid-template-columns: 1fr !important;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .related-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ── Product details inline-style replacements ────────────────────────────────── */
.hidden {
    display: none !important;
}

.star-icon {
    display: inline-block;
    vertical-align: middle;
}

.thumbnail-btn {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    padding: 0;
    background: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.thumbnail-btn.active {
    border-color: #dd0e1c;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.thumbnail-label {
    font-size: 8px;
    font-weight: 700;
    text-align: center;
    padding: 2px 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #f8fafc;
    color: #64748b;
}

.thumbnail-label.active {
    background: #dd0e1c;
    color: #ffffff;
}

.material-option {
    text-align: left;
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    border: 2px solid #e2e8f0;
    background: #ffffff;
}

.material-option.active {
    border-color: #dd0e1c;
    background: #fef2f2;
}

.rating-bar-inner {
    height: 100%;
    border-radius: 999px;
    background: #fbbf24;
}

.rating-bar-47 { width: 47%; }
.rating-bar-31 { width: 31%; }
.rating-bar-16 { width: 16%; }
.rating-bar-3  { width: 3%;  }
.rating-bar-2  { width: 2%;  }

.material-badge-inline {
    font-size: 10px;
    font-weight: 900;
    padding: 2px 6px;
    display: inline-block;
    margin-bottom: 4px;
}

.thickness-option {
    display: block !important;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.thickness-option.active {
    border-color: #dd0e1c;
    background: #fef2f2;
    color: #dd0e1c;
}

.bulk-tier {
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.bulk-tier.active {
    border: 1px solid #dd0e1c;
    background: #fef2f2;
    outline: 1px solid rgba(249, 115, 22, 0.3);
}

.bulk-tier .tier-range,
.bulk-tier .tier-price {
    font-weight: 700;
}

.bulk-tier .tier-range {
    color: #334155;
}

.bulk-tier.active .tier-range,
.bulk-tier.active .tier-price {
    color: #dd0e1c;
}

.bulk-tier .tier-subtext {
    color: #94a3b8;
    font-size: 10px;
}

.review-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    background: #ffffff;
    transition: box-shadow 0.2s ease;
}

.review-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.review-card-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.review-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1a1a2e;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.review-badge {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 999px;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
}

.review-title {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
    font-size: 14px;
}

.review-body {
    color: #475569;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.review-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #94a3b8;
}

.review-helpful-btn {
    margin-left: 8px;
    color: #dd0e1c;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    text-decoration: underline;
}

.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.thumbnail-img-wrapper {
    aspect-ratio: 1;
    overflow: hidden;
}

.material-label {
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
    margin-bottom: 6px;
}

.material-subtext {
    color: #94a3b8;
    font-size: 11px;
}

.thickness-subtext {
    display: block;
    font-size: 10px;
    font-weight: 400;
    opacity: 0.7;
}

.review-card-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.review-meta-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.review-author {
    font-weight: 700;
    color: #1e293b;
}

.review-date {
    font-size: 11px;
    color: #94a3b8;
}

.review-like-icon {
    flex-shrink: 0;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-question-text {
    font-weight: 700;
    color: #1e293b;
    font-size: 14px;
    padding-right: 16px;
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.2s, stroke 0.2s;
    stroke: #94a3b8;
}

.faq-icon.rotated {
    transform: rotate(180deg);
    stroke: #dd0e1c;
}

.faq-panel {
    padding: 0 20px 16px;
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}

.product-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.product-card-image-wrapper {
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
}

.product-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    color: #ffffff;
}

.product-card-badge.top-rated {
    background: #1a1a2e;
}

.product-card-badge.highlight {
    background: #dd0e1c;
}

.product-card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-material {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #dd0e1c;
    margin-bottom: 2px;
}

.product-card-title {
    font-weight: 700;
    color: #1e293b;
    font-size: 13px;
    margin-bottom: 6px;
    flex: 1;
}

.product-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
}

.product-card-review-count {
    font-size: 10px;
    color: #94a3b8;
    margin-left: 2px;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-card-price {
    font-weight: 900;
    color: #1a1a2e;
    font-size: 15px;
}

.product-card-add {
    background: #dd0e1c;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.product-card-add:hover {
    background: #ea6c0a;
}
   

.related-card-name {
    font-weight: 700;
    color: #1e293b;
    font-size: 13px;
    margin-bottom: 6px;
    flex: 1;
}

.related-card-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.related-card-price {
    font-weight: 900;
    color: #1a1a2e;
    font-size: 15px;
}

.related-card-add {
    background: #dd0e1c;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.related-card-add:hover {
    background: #ea6c0a;
}
.btn-round{
    height: 32px;
    width: 32px;
}
.tab-bar-section{
    height: 48px;;
}