/* Product Page */

.product-hero {
    position: relative;
    margin-top: 72px;
    height: 360px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.product-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.product-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(29,44,41,0.65) 0%, rgba(29,44,41,0.35) 50%, rgba(29,44,41,0.15) 100%);
}

.product-hero-inner {
    position: relative;
    z-index: 2;
    color: #fff;
}

.product-hero-inner h1 {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.product-hero-inner p {
    margin-top: 14px;
    font-size: 16px;
    max-width: 620px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}

/* Search */
.product-search {
    background: #f7f4ef;
    padding: 24px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.search-box {
    position: relative;
    max-width: 520px;
    margin: 0 auto;
}

.search-box .search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #8a8a8a;
}

.search-box input {
    width: 100%;
    padding: 14px 18px 14px 48px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    background: #fff;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-box input:focus {
    border-color: #d4a373;
    box-shadow: 0 0 0 3px rgba(212,163,115,0.15);
}

/* Layout */
.product-main {
    padding: 48px 0 80px;
}

.product-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Sidebar */
.product-sidebar {
    flex: 0 0 240px;
    position: sticky;
    top: 96px;
}

.sidebar-title {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1d2c29;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #d4a373;
}

.category-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cat-btn {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #444;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
}

.cat-btn:hover {
    background: #f3ede4;
    color: #1d2c29;
}

.cat-btn.active {
    background: #1d2c29;
    color: #fff;
}

/* Product grid */
.product-content {
    flex: 1;
    min-width: 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.product-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    overflow: visible;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.10);
}

.card-img {
    background: #f5f2ed;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 220px;
    max-height: 460px;
}

.card-img img {
    max-width: 100%;
    max-height: 420px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s;
}

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

.card-name {
    padding: 14px 16px 14px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: #1d2c29;
    min-height: 42px;
}

.card-actions {
    padding: 12px 16px 16px;
    display: flex;
    gap: 8px;
    margin-top: auto;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
    min-height: 34px;
    visibility: visible;
}

.btn,
.product-card .btn,
.card-actions .btn {
    display: inline-block !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    border-radius: 5px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.25s !important;
    flex: 1 1 auto !important;
    white-space: nowrap !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.btn-quote,
.product-card .btn-quote,
.card-actions .btn-quote {
    background: #d4a373 !important;
    color: #fff !important;
    border: 1px solid #d4a373 !important;
}

.btn-quote:hover,
.product-card .btn-quote:hover,
.card-actions .btn-quote:hover {
    background: #c08f5c !important;
}

.btn-learn,
.product-card .btn-learn,
.card-actions .btn-learn {
    background: #fff !important;
    color: #1d2c29 !important;
    border: 1px solid #d4a373 !important;
}

.btn-learn:hover,
.product-card .btn-learn:hover,
.card-actions .btn-learn:hover {
    background: #f3ede4 !important;
}

/* Inquiry Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 36px 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
}

.modal-close:hover {
    color: #1d2c29;
}

.modal-box h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1d2c29;
    margin-bottom: 24px;
}

.modal-form .form-group {
    margin-bottom: 18px;
}

.modal-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.modal-form label .required {
    color: #e74c3c;
}

.modal-form input,
.modal-form textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    outline: none;
    font-family: inherit;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.modal-form input:focus,
.modal-form textarea:focus {
    border-color: #d4a373;
    box-shadow: 0 0 0 3px rgba(212,163,115,0.12);
}

.modal-form textarea {
    min-height: 110px;
    resize: vertical;
}

.modal-form .btn-submit {
    display: inline-block;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 30px;
    border: none;
    background: #d4a373;
    color: #fff;
    cursor: pointer;
    transition: background 0.25s;
}

.modal-form .btn-submit:hover {
    background: #c08f5c;
}

.modal-form .form-success {
    display: none;
    text-align: center;
    color: #27ae60;
    font-size: 16px;
    padding: 40px 0;
}

.modal-form .form-success.active {
    display: block;
}

/* Empty / no results */
.empty-cat,
.no-results {
    grid-column: 1 / -1;
    padding: 60px 20px;
    text-align: center;
    color: #999;
    font-size: 16px;
    background: #faf8f4;
    border: 1px dashed #ddd;
    border-radius: 12px;
}

/* Responsive */
@media (max-width: 900px) {
    .product-layout {
        flex-direction: column;
        gap: 28px;
    }
    .product-sidebar {
        position: static;
        flex: none;
        width: 100%;
    }
    .category-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    .cat-btn {
        width: auto;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-hero-inner h1 {
        font-size: 38px;
    }
}

@media (max-width: 560px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .product-hero {
        height: 280px;
    }
    .product-hero-inner h1 {
        font-size: 30px;
    }
}
