/* Specifications Page Styles */

.specs-header {
    background: white;
    border-bottom: 2px solid #e7e5e4;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.brand-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f766e;
    letter-spacing: -0.5px;
    margin: 0;
}

.brand-subtitle {
    font-size: 11px;
    color: #78716c;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 4px 0 0 0;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.unit-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f5f5f4;
    border: 1px solid #d6d3d1;
    border-radius: 20px;
    color: #78716c;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.unit-toggle-btn:hover {
    background: #ecfdf5;
    color: #0f766e;
    border-color: #10b981;
}

.back-btn {
    padding: 8px 16px;
    background: white;
    border: 2px solid #e7e5e4;
    border-radius: 8px;
    color: #57534e;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.back-btn:hover {
    border-color: #0f766e;
    color: #0f766e;
}

.tab-nav {
    max-width: 1200px;
    margin: 0 auto 20px auto; /* Added bottom margin */
    padding: 0 24px 16px;
    display: flex;
    gap: 8px;
    background: #f5f5f4;
    border-radius: 12px;
    padding: 4px;
    width: fit-content;
}

.tab-btn {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #78716c;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    background: white;
    color: #0f766e;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.specs-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e7e5e4;
    border-radius: 24px;
    color: #57534e;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-chip.active {
    background: #0f766e;
    color: white;
    border-color: #0f766e;
}

.filter-chip:hover:not(.active) {
    border-color: #10b981;
}

/* Product Grid */
.product-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.spec-card {
    background: white;
    border-radius: 16px;
    border: 2px solid #e7e5e4;
    padding: 24px;
    transition: all 0.3s;
}

.spec-card:hover {
    border-color: #10b981;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.12);
    transform: translateY(-2px);
}

.spec-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.tile-visual {
    width: 64px;
    height: 64px;
    background: #f5f5f4;
    border-radius: 12px;
    border: 2px solid #e7e5e4;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.spec-badge {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-badge.mz {
    background: #d1fae5;
    color: #065f46;
}

.spec-badge.zg {
    background: #e7e5e4;
    color: #44403c;
}

.spec-title {
    font-size: 18px;
    font-weight: 700;
    color: #1c1917;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.spec-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #f5f5f4;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #78716c;
    font-size: 13px;
}

.stat-value {
    font-weight: 700;
    color: #1c1917;
    font-size: 14px;
    text-align: right;
}

.stat-subvalue {
    font-size: 11px;
    color: #a8a29e;
    margin-top: 2px;
}

/* Logistics Section */
.spec-section {
    background: white;
    border-radius: 16px;
    border: 2px solid #e7e5e4;
    padding: 32px;
    margin-bottom: 32px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.section-header svg {
    color: #10b981;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1c1917;
    margin: 0;
    flex: 1;
}

.unit-badge {
    padding: 4px 12px;
    background: #ecfdf5;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    color: #059669;
}

.box-visuals {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 48px;
}

.box-3d {
    text-align: center;
}

.box-3d-title {
    font-size: 14px;
    font-weight: 600;
    color: #44403c;
    margin-top: 16px;
}

.box-3d-dims {
    font-size: 11px;
    color: #a8a29e;
    margin-top: 4px;
}

/* Container Grid */
.container-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 32px;
}

.container-card {
    background: #fafaf9;
    border-radius: 12px;
    padding: 28px;
    border-left: 4px solid;
}

.container-card.mz {
    border-left-color: #10b981;
}

.container-card.zg {
    border-left-color: #78716c;
}

.container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.container-title {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.container-title.mz {
    color: #065f46;
}

.container-title.zg {
    color: #44403c;
}

.container-info {
    text-align: right;
    font-size: 12px;
    color: #78716c;
}

.container-info strong {
    display: block;
    font-size: 16px;
    color: #1c1917;
    margin-top: 2px;
}

.container-visuals {
    display: flex;
    justify-content: space-around;
    gap: 24px;
    margin-bottom: 24px;
}

.container-note {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 12px;
    font-size: 13px;
    color: #92400e;
    text-align: center;
}

/* Calculator */
.calculator-container {
    max-width: 700px;
    margin: 0 auto;
}

.calculator-card {
    background: white;
    border-radius: 16px;
    border: 2px solid #e7e5e4;
    padding: 32px;
}

.calc-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
}

.calc-icon {
    width: 48px;
    height: 48px;
    background: #ecfdf5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #059669;
    flex-shrink: 0;
}

.calc-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1c1917;
    margin: 0 0 4px 0;
}

.calc-header p {
    font-size: 14px;
    color: #78716c;
    margin: 0;
}

.calc-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #44403c;
    margin-bottom: 8px;
}

.input-group select,
.input-group input {
    width: 100%;
    padding: 12px 16px;
    background: #f5f5f4;
    border: 2px solid #e7e5e4;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
}

.input-group select:focus,
.input-group input:focus {
    outline: none;
    border-color: #10b981;
    background: white;
}

.calc-results {
    background: #ecfdf5;
    border-radius: 12px;
    border: 2px solid #a7f3d0;
    padding: 24px;
}

.results-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #065f46;
    font-weight: 700;
    margin-bottom: 20px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.result-box {
    background: white;
    border-radius: 8px;
    border: 1px solid #d1fae5;
    padding: 16px;
}

.result-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #78716c;
    margin-bottom: 4px;
}

.result-value {
    font-size: 28px;
    font-weight: 800;
    color: #059669;
}

.result-subtext {
    font-size: 11px;
    color: #a8a29e;
    margin-top: 4px;
}

.wholesale-note {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
}

.wholesale-note strong {
    color: #065f46;
}

.disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 11px;
    color: rgb(16, 185, 129, 0.6);
    margin-top: 16px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .header-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .product-specs-grid {
        grid-template-columns: 1fr;
    }
    
    .calc-inputs {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .container-grid {
        grid-template-columns: 1fr;
    }
}
