/*
 Theme Name:   Minimog Child
 Description:  Minimog Child Theme
 Author:       InsightStudio
 Template:     minimog
 Version:      1.0.2
*/

/* ==========================================================================
   Global Layout Adjustments
   ========================================================================== */

.page-breadcrumb-wrap {
    margin-top: 20px;
}

/* ==========================================================================
   Product Tabs (Reviews & Questions)
   ========================================================================== */

.minimog-tabs__header {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

.tab-title__text {
    font-size: 24px !important;
    line-height: 32px !important;
}

/* ==========================================================================
   Product Summary Adjustments
   ========================================================================== */

.product_title.entry-title {
    font-size: 24px !important;
    line-height: 32px !important;
}

/* ==========================================================================
   Custom Brand Tab Layout
   ========================================================================== */

.custom-brand-tab-container {
    padding-top: 20px;
}
.brand-row-1 {
    display: flex;
}

/* ==========================================================================
   Common Form Styles (Request a Product & Report a Problem)
   ========================================================================== */

.rap-form-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 20px 0;
}

.rap-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    min-width: 180px;
    padding: 0 28px;
    margin: 0;
    background: #222;
    color: #fff;
    border: 1px solid #222;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: none;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    transition: background .15s, border-color .15s, transform .05s, box-shadow .15s;
}

.rap-submit-btn:hover,
.rap-submit-btn:focus {
    background: #000;
    border-color: #000;
    color: #fff;
    outline: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.rap-submit-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.rap-submit-btn:disabled {
    background: #999;
    border-color: #999;
    cursor: not-allowed;
    box-shadow: none;
}

.rap-form input[type="text"],
.rap-form input[type="email"],
.rap-form input[type="tel"],
.rap-form input[type="url"],
.rap-form input[type="number"],
.rap-form input[type="search"],
.rap-form select {
    width: 100%;
    box-sizing: border-box;
    height: 44px;
    padding: 0 18px;
    border: 1px solid #d0d0d0;
    border-radius: 999px;
    background: #fff;
    font-size: 15px;
    line-height: 1;
    color: #222;
    transition: border-color .15s, box-shadow .15s;
    appearance: none;
    -webkit-appearance: none;
}

.rap-form select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%23555' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 42px;
}

.rap-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 18px;
    border: 1px solid #d0d0d0;
    border-radius: 20px;
    background: #fff;
    font-size: 15px;
    line-height: 1.5;
    color: #222;
    font-family: inherit;
    resize: vertical;
    transition: border-color .15s, box-shadow .15s;
}

.rap-form input:focus,
.rap-form select:focus,
.rap-form textarea:focus {
    outline: none;
    border-color: #222;
    box-shadow: 0 0 0 3px rgba(34,34,34,0.08);
}

.rap-form input::placeholder,
.rap-form textarea::placeholder { color: #aaa; }

.rap-success {
    padding: 16px;
    background: #e8f5e9;
    border: 1px solid #66bb6a;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.rap-errors {
    padding: 16px;
    background: #ffebee;
    border: 1px solid #ef5350;
    border-radius: 4px;
    margin-bottom: 20px;
}

.rap-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
}

.rap-chip-thumb {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #eee;
    background: #fff;
}

.rap-chip-name {
    flex: 1;
    min-width: 0;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rap-chip-price {
    color: #666;
    font-size: 0.95em;
    flex-shrink: 0;
}

.rap-chip-remove {
    background: #fff;
    border: 1px solid #ddd;
    color: #666;
    width: 28px;
    height: 28px;
    min-width: 28px;
    max-width: 28px;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    box-shadow: none;
    transition: background .15s, color .15s, border-color .15s;
}

.rap-chip-remove:hover,
.rap-chip-remove:focus,
.rap-chip-remove:active {
    background: #ffe5e5;
    color: #c62828;
    border: 1px solid #ef5350;
    outline: none;
    box-shadow: none;
}

.remove-request-item {
    background: #fff !important;
    border: 1px solid #ddd !important;
    color: #999 !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 18px !important;
    line-height: 1 !important;
    padding: 0 !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05) !important;
}

.remove-request-item:hover {
    background: #ffebee !important;
    color: #c62828 !important;
    border-color: #ef5350 !important;
    box-shadow: 0 2px 8px rgba(239, 83, 80, 0.2) !important;
}

/* ==========================================================================
   Drag & Drop Uploader (Dropzone) Styles
   ========================================================================== */

.rap-dropzone {
    position: relative;
    border: 2px dashed #c9c9c9;
    border-radius: 10px;
    background: #fafafa;
    padding: 28px 20px;
    text-align: center;
    transition: border-color .15s, background .15s, transform .05s;
    cursor: pointer;
    color: #555;
    margin-top: 5px;
}

.rap-dropzone:hover {
    border-color: #888;
    background: #f4f4f4;
}

.rap-dropzone:focus {
    outline: none;
    border-color: #222;
    box-shadow: 0 0 0 3px rgba(34,34,34,0.12);
}

.rap-dropzone.is-dragover {
    border-color: #2e7d32;
    background: #ecf7ee;
    color: #2e7d32;
    transform: scale(1.005);
}

.rap-dropzone .rap-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.rap-dz-icon {
    color: #999;
    margin-bottom: 8px;
}

.rap-dropzone:hover .rap-dz-icon {
    color: #555;
}

.rap-dropzone.is-dragover .rap-dz-icon {
    color: #2e7d32;
}

.rap-dz-title {
    font-size: 0.98em;
    margin-bottom: 4px;
    color: #333;
}

.rap-dz-sub {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 6px;
}

.rap-dz-link {
    color: #1565c0;
    text-decoration: underline;
}

.rap-dz-hint {
    font-size: 0.8em;
    color: #888;
}

.rap-dropzone-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    padding: 4px;
}

.rap-dz-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: #fff;
    flex-shrink: 0;
}

.rap-dz-meta {
    flex: 1;
    min-width: 0;
}

.rap-dz-filename {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    color: #333;
}

.rap-dz-remove {
    background: #fff;
    border: 1px solid #ddd;
    color: #555;
    width: 32px;
    height: 32px;
    min-width: 32px;
    max-width: 32px;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    box-shadow: none;
    transition: background .15s, color .15s, border-color .15s;
}

.rap-dz-remove:hover,
.rap-dz-remove:focus,
.rap-dz-remove:active {
    background: #ffe5e5;
    color: #c62828;
    border: 1px solid #ef5350;
    outline: none;
    box-shadow: none;
}

    align-items: center;
    margin-bottom: 25px;
}

.brand-logo img {
    width: 70px !important;
    height: 70px !important;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 4px;
}

.brand-header-info {
    margin-left: 20px;
}

.brand-title {
    margin: 0 0 5px 0 !important;
    font-size: 20px !important;
    font-weight: 700;
}

.brand-more-link {
    font-size: 14px;
    text-decoration: underline;
    color: #000;
    font-weight: 500;
}

.brand-row-2.brand-description {
    margin-bottom: 35px;
    color: #666;
    line-height: 1.6;
}

.more-from-brand-title {
    margin-bottom: 20px !important;
    font-size: 18px !important;
    font-weight: 600;
}

.brand-products-scroll-wrap {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 15px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.brand-products-scroll-wrap::-webkit-scrollbar {
    height: 4px;
}

.brand-products-scroll-wrap::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.brand-product-card {
    flex: 0 0 calc(33.333% - 13.33px);
    min-width: 150px;
    text-align: left;
}

.brand-product-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.brand-product-card .product-image img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin: 0 0 10px 0;
    display: block;
}

.brand-product-card .product-title {
    font-size: 14px !important;
    line-height: 1.4 !important;
    height: 2.8em;
    margin: 0 0 8px 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500;
}

.brand-product-card .product-price {
    font-weight: 600;
    color: #333;
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px;
}

.brand-product-card .product-price del {
    font-weight: 400;
    color: #999;
    font-size: 11px;
    text-decoration: line-through;
}

.brand-product-card .product-price ins {
    text-decoration: none;
    color: #e60000;
}

@media (max-width: 768px) {
    .brand-product-card {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .brand-product-card {
        flex: 0 0 80%;
    }
}

/* ==========================================================================
   Product Specifications Card (Single Product Page)
   ========================================================================== */

.product-specs-card {
    background: #F6F6F6; /* Light gray background as requested */
    border: 1px solid #eeeeee;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.specs-grid {
    display: grid;
    gap: 15px 30px;
}

/* Default / 2 items: 2 columns */
.specs-grid.count-1,
.specs-grid.count-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* 3 items: Side by side in a row */
.specs-grid.count-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* 4 items: 2 row and column (2x2) */
.specs-grid.count-4 {
    grid-template-columns: repeat(2, 1fr);
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 600;
}

.spec-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* Mobile responsive - stack to 1 column regardless of count */
@media (max-width: 600px) {
    .specs-grid.count-1,
    .specs-grid.count-2,
    .specs-grid.count-3,
    .specs-grid.count-4 {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ==========================================================================
   FAQ Tab Styling (Sync with Discussion Tabs)
   ========================================================================== */
.tab-content-product_faq .tab-content-wrapper {
    max-width: 770px;
    margin: 0 auto;
}

.tab-content-product_faq .faq-list-wrapper {
    padding-top: 30px;
}

.tab-content-product_faq .faq-item {
    margin-bottom: 25px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 20px;
}

.tab-content-product_faq .faq-item:last-child {
    border-bottom: 0;
}

.tab-content-product_faq .faq-question {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 12px;
    color: #000;
    display: flex;
    align-items: flex-start;
}

.tab-content-product_faq .q-label {
    margin-right: 12px;
    color: #ababab;
}

.tab-content-product_faq .faq-answer {
    display: flex;
    align-items: flex-start;
    line-height: 1.6;
    color: #666;
}

.tab-content-product_faq .a-label {
    margin-right: 12px;
    font-weight: 600;
    color: #ababab;
}

.tab-content-product_faq .a-text p:last-child {
    margin-bottom: 0;
}
