/* ===================================
   SHOP PAGE STYLESHEET
   =================================== */

/* --- 1. Breadcrumb Section --- */
.breadcrumb-section {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border-light);
    padding: 0.85rem 0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted);
}

.breadcrumb-item a {
    color: var(--muted);
    font-weight: 500;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: var(--primary-dark);
    font-weight: 700;
}

.breadcrumb-separator {
    color: var(--border);
    font-size: 0.8rem;
}

/* --- 2. Compact Shop Hero (Luxury Botanical Theme) --- */
.shop-hero {
    background: linear-gradient(135deg, #092615 0%, #113f25 50%, #0d2817 100%);
    padding: 3.25rem 0 2.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.shop-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

.shop-hero-content {
    max-width: 720px;
    position: relative;
    z-index: 2;
}

.shop-hero-eyebrow {
    font-size: 0.78125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 0.85rem;
}

.shop-hero-title {
    font-family: 'Merriweather', serif;
    font-size: clamp(2.1rem, 4vw, 3rem);
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.shop-hero-description {
    font-size: 1.05rem;
    color: #cbd5e1;
    line-height: 1.65;
    margin: 0;
    font-weight: 400;
}

/* --- 3. Main Shop Layout --- */
.shop-page-section {
    padding: 3rem 0 5rem;
    background-color: var(--background);
}

.shop-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.shop-products-column {
    flex: 1;
    min-width: 0; /* Prevent flex grid blowout */
}

/* List View Layout Mode */
.products-grid.products-list {
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.products-list .product-card {
    flex-direction: row;
    align-items: center;
}

.products-list .product-card-image {
    width: 240px;
    padding-top: 0;
    height: 240px;
    flex-shrink: 0;
}

.products-list .product-card-body {
    padding: 1.5rem;
}

@media (max-width: 640px) {
    .products-list .product-card {
        flex-direction: column;
    }
    .products-list .product-card-image {
        width: 100%;
        height: 200px;
    }
}

/* --- 4. Quick View Modal Placeholder --- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 36, 18, 0.6);
    backdrop-filter: blur(6px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.quick-view-modal {
    background-color: var(--surface);
    border-radius: var(--radius-lg);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-backdrop.active .quick-view-modal {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--background);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.modal-close-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.quick-view-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    padding: 2.5rem;
}

.quick-view-image-wrapper {
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--surface-alt);
    aspect-ratio: 1/1;
}

.quick-view-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quick-view-details {
    display: flex;
    flex-direction: column;
}

.quick-view-category {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.quick-view-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.quick-view-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quick-view-price-original {
    font-size: 1.1rem;
    color: var(--muted);
    text-decoration: line-through;
    font-weight: 400;
}

.quick-view-description {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.quick-view-meta {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-view-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

/* --- 4b. Product Details Specifications Table Card --- */
.product-details-specs-card {
    border-top: 1px solid var(--border-light);
    padding: 2rem 2.5rem;
    background-color: var(--surface);
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}

.specs-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 3rem;
    margin-bottom: 2rem;
}

.spec-row-item {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #f3f4f6;
}

.spec-label-title {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 140px;
    flex-shrink: 0;
}

.spec-value-text {
    color: #111827;
    font-size: 0.925rem;
    font-weight: 700;
    flex: 1;
    word-break: break-word;
}

.specs-interested-wrapper {
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
}

.btn-interested {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #113554;
    color: #ffffff;
    padding: 0.85rem 2.5rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 4px 14px rgba(17, 53, 84, 0.2);
}

.btn-interested:hover {
    background-color: #0c263d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 53, 84, 0.3);
}

@media (max-width: 768px) {
    .quick-view-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .product-details-specs-card {
        padding: 1.5rem;
    }

    .specs-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* --- 4c. Quick Quote / Enquiry Modal Styles --- */
.enquiry-modal-card {
    background-color: #ffffff;
    border-radius: 6px;
    max-width: 740px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-backdrop.active .enquiry-modal-card {
    transform: scale(1);
}

.enquiry-modal-grid {
    display: grid;
    grid-template-columns: 270px 1fr;
    background-color: #ffffff;
}

.enquiry-product-side {
    background-color: #f9fafb;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

.enquiry-product-header {
    background-color: #55595e;
    padding: 0.65rem 1rem;
}

.enquiry-product-header h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.enquiry-image-container {
    padding: 1.25rem;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
}

.enquiry-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.enquiry-price-info {
    padding: 1rem;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #1f2937;
    border-top: 1px solid #e5e7eb;
}

.enquiry-price-line {
    margin-bottom: 0.25rem;
}

.enquiry-price-line span {
    color: #113554;
    font-weight: 700;
}

.enquiry-moq-line {
    margin: 0;
    color: #4b5563;
}

.enquiry-form-side {
    display: flex;
    flex-direction: column;
}

.enquiry-form-banner {
    background-color: #113554;
    padding: 0.65rem 1.25rem;
    text-align: center;
}

.enquiry-form-banner h2 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.02em;
}

.enquiry-form-body {
    padding: 1.5rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.enquiry-form-body label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 0.35rem;
    display: block;
}

.enquiry-form-body input[type="number"],
.enquiry-form-body input[type="text"],
.enquiry-form-body input[type="tel"] {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 0.55rem 0.75rem;
    font-size: 0.875rem;
    color: #111827;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #ffffff;
}

.enquiry-form-body input:focus {
    border-color: #113554;
    box-shadow: 0 0 0 3px rgba(17, 53, 84, 0.1);
}

.unit-input-wrapper {
    position: relative;
}

.btn-unit-edit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #113554;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    padding: 2px 4px;
}

.phone-input-group {
    display: flex;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    overflow: hidden;
}

.country-code-box {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: #f3f4f6;
    padding: 0.55rem 0.75rem;
    border-right: 1px solid #d1d5db;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.phone-input-group input {
    border: none !important;
    border-radius: 0 !important;
    flex: 1;
}

.submit-group {
    margin-top: 0.5rem;
}

.btn-send-enquiry {
    background-color: #374151;
    color: #ffffff;
    padding: 0.65rem 1.75rem;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-send-enquiry:hover {
    background-color: #113554;
    box-shadow: 0 4px 12px rgba(17, 53, 84, 0.25);
}

@media (max-width: 640px) {
    .enquiry-modal-grid {
        grid-template-columns: 1fr;
    }
    .enquiry-product-side {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }
    .form-row-dual {
        grid-template-columns: 1fr;
    }
}

/* --- 5. Empty State Placeholder --- */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background-color: var(--surface);
    border-radius: var(--radius-md);
    border: 1px dashed var(--border);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.empty-state-icon svg {
    width: 40px;
    height: 40px;
}

.empty-state-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.empty-state-desc {
    font-size: 0.95rem;
    color: var(--muted);
    max-width: 420px;
    margin: 0 auto 1.75rem;
}

/* ==========================================================================
   SHOP PAGE — MOBILE RESPONSIVE STYLES
   ========================================================================== */

/* ---- 992px: Tablet / small laptops ---- */
@media (max-width: 992px) {
    .shop-hero {
        padding: 2rem 0 1.5rem;
    }
    .shop-hero-title {
        font-size: clamp(1.6rem, 4vw, 2.25rem);
    }

    /* Stack sidebar + product column */
    .shop-layout {
        flex-direction: column;
        gap: 0;
    }
    .shop-products-column {
        width: 100%;
    }

    /* Hide sort label, keep select */
    .sort-label {
        display: none;
    }
}

/* ---- 768px: Tablet portrait ---- */
@media (max-width: 768px) {
    .shop-hero {
        padding: 1.75rem 0 1.25rem;
    }
    .shop-hero-title {
        font-size: clamp(1.45rem, 5vw, 2rem);
    }
    .shop-hero-description {
        font-size: 0.9375rem;
    }
    .shop-page-section {
        padding: 1.75rem 0 3.5rem;
    }

    /* 3-col grid on tablets */
    .products-grid:not(.products-list) {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

/* ---- 640px: Large phones ---- */
@media (max-width: 640px) {
    .shop-hero {
        padding: 1.5rem 0 1rem;
    }
    .shop-hero-title {
        font-size: clamp(1.3rem, 5.5vw, 1.75rem);
        line-height: 1.25;
    }
    .shop-hero-eyebrow {
        font-size: 0.72rem;
    }
    .shop-hero-description {
        font-size: 0.875rem;
        line-height: 1.55;
    }

    /* Breadcrumb: horizontal scroll */
    .breadcrumb-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        font-size: 0.8125rem;
    }

    /* Toolbar */
    .shop-toolbar {
        padding: 0.875rem 1rem;
        gap: 0.875rem;
    }
    .results-count {
        font-size: 0.78rem;
    }
    .sort-select {
        font-size: 0.8125rem;
        padding: 0.5rem 1.8rem 0.5rem 0.65rem;
    }
    /* Hide grid/list toggle on small phones */
    .view-mode-toggle {
        display: none;
    }

    /* 2-col product grid */
    .products-grid:not(.products-list) {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
    }

    /* Product card body */
    .product-card-body {
        padding: 0.875rem;
    }
    .product-title {
        font-size: 0.875rem;
    }
    .product-category {
        font-size: 0.68rem;
    }
    .price-current {
        font-size: 1rem;
    }
    .price-original {
        font-size: 0.78rem;
    }
    .btn-add-cart {
        font-size: 0.78rem;
        padding: 0.5rem 0.75rem;
    }

    /* Quick view */
    .quick-view-title {
        font-size: 1.35rem;
    }
    .quick-view-price {
        font-size: 1.2rem;
    }

    /* Empty state */
    .empty-state {
        padding: 3rem 1.5rem;
    }
    .empty-state-icon {
        width: 60px;
        height: 60px;
    }
    .empty-state-icon svg {
        width: 28px;
        height: 28px;
    }
    .empty-state-title {
        font-size: 1.25rem;
    }
}

/* ---- 475px: Small phones ---- */
@media (max-width: 475px) {
    .shop-hero {
        padding: 1.25rem 0 0.875rem;
    }
    .shop-hero-title {
        font-size: clamp(1.2rem, 6vw, 1.5rem);
    }
    .shop-hero-description {
        font-size: 0.8125rem;
    }
    .shop-page-section {
        padding: 1.25rem 0 2.5rem;
    }

    /* Toolbar: compact */
    .shop-toolbar {
        padding: 0.75rem;
        gap: 0.75rem;
        border-radius: var(--radius-sm);
    }
    .btn-mobile-filter {
        padding: 0.5rem 0.75rem;
        font-size: 0.78rem;
    }
    .results-count {
        font-size: 0.72rem;
    }
    .toolbar-search-input {
        font-size: 0.8125rem;
        padding: 0.55rem 2.25rem 0.55rem 2.25rem;
    }

    /* 2-col with tighter gap */
    .products-grid:not(.products-list) {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.625rem;
    }
    .product-card-body {
        padding: 0.75rem;
    }
    .product-title {
        font-size: 0.8125rem;
    }
    .product-category {
        font-size: 0.625rem;
        margin-bottom: 0.25rem;
    }
    .price-current {
        font-size: 0.9375rem;
    }
    .price-original {
        font-size: 0.72rem;
    }
    .product-rating {
        margin-bottom: 0.5rem;
    }
    .rating-stars svg {
        width: 11px;
        height: 11px;
    }
    .rating-count {
        font-size: 0.68rem;
    }
    .btn-add-cart {
        font-size: 0.72rem;
        padding: 0.45rem 0.5rem;
        gap: 0.25rem;
    }

    /* Quick view modal */
    .quick-view-modal {
        max-height: 95vh;
        border-radius: var(--radius-md);
    }
    .quick-view-grid {
        padding: 1.25rem;
        gap: 1.25rem;
    }
    .quick-view-title {
        font-size: 1.15rem;
    }
    .quick-view-price {
        font-size: 1.1rem;
    }
    .quick-view-actions {
        flex-direction: column;
    }
    .quick-view-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Specs card */
    .product-details-specs-card {
        padding: 1.25rem;
    }
    .specs-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    .spec-label-title {
        min-width: 110px;
        font-size: 0.8125rem;
    }
    .spec-value-text {
        font-size: 0.875rem;
    }
    .btn-interested {
        font-size: 0.875rem;
        padding: 0.75rem 1.5rem;
        width: 100%;
    }

    /* Enquiry modal */
    .enquiry-form-body {
        padding: 1rem 1.25rem 1.25rem;
    }
    .enquiry-form-banner h2 {
        font-size: 0.95rem;
    }
}

/* ---- 400px: Very small phones ---- */
@media (max-width: 400px) {
    /* Drop to single-column grid */
    .products-grid:not(.products-list) {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .shop-hero-title {
        font-size: 1.2rem;
    }
    .shop-hero-description {
        font-size: 0.78rem;
    }
    .toolbar-left {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

/* ---- 375px: iPhone SE & smallest devices ---- */
@media (max-width: 375px) {
    .shop-hero-title {
        font-size: 1.1rem !important;
        line-height: 1.3;
    }
    .shop-hero-eyebrow {
        font-size: 0.65rem !important;
    }
    .shop-hero-description {
        font-size: 0.75rem !important;
    }
    .product-title {
        font-size: 0.78rem !important;
    }
    .price-current {
        font-size: 0.875rem !important;
    }
    .btn-add-cart {
        font-size: 0.68rem !important;
        padding: 0.4rem !important;
    }
    .quick-view-title {
        font-size: 1rem !important;
    }
    .specs-title {
        font-size: 1rem !important;
    }
    .spec-label-title {
        min-width: 95px !important;
        font-size: 0.75rem !important;
    }
    .spec-value-text {
        font-size: 0.8125rem !important;
    }
    .empty-state {
        padding: 2.5rem 1rem !important;
    }
    .empty-state-title {
        font-size: 1.1rem !important;
    }
    .empty-state-desc {
        font-size: 0.8125rem !important;
    }
}

