/* Fotex.lv — Custom overrides loaded separately from Tailwind */

/* Warm cream background */
body { background-color: #FAF9F6 !important; }
.page-header { background-color: #FAF9F6 !important; border-bottom: 1px solid #E8E3DE !important; }
.page-footer { background-color: #1A1A1A !important; border-top: none !important; box-shadow: none !important; }

/* Copper buttons */
.btn-primary, a.btn-primary, button.btn-primary, .action.primary,
button[type="submit"].action.primary, [data-addto="cart"] {
    background-color: #B8834E !important; border-color: #B8834E !important; color: #fff !important;
}
.btn-primary:hover, a.btn-primary:hover, button.btn-primary:hover, .action.primary:hover {
    background-color: #96693A !important; border-color: #96693A !important;
}

/* Equal height product cards */
.products-grid .product-items {
    display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.products-grid .product-item {
    height: 100% !important; display: flex !important; flex-direction: column !important;
}
.products-grid .product-item .product-info {
    flex: 1 !important; display: flex !important; flex-direction: column !important;
}
.products-grid .product-item .product-info > div:last-child { margin-top: auto !important; }
@media (max-width: 768px) {
    .products-grid .product-items { grid-template-columns: 1fr !important; }
}

/* Hide on category listing */
button[data-addto="wishlist"], button[data-addto="compare"], a#compare-link { display: none !important; }

/* PDP: hide add-to-cart + qty until Peleman project exists */
.catalog-product-view #product-addtocart-button,
.catalog-product-view .field.qty { display: none !important; }
.catalog-product-view.peleman-project-ready #product-addtocart-button { display: inline-flex !important; }
.catalog-product-view.peleman-project-ready .field.qty { display: block !important; }

/* PDP: reviews hidden */

/* PDP: description prose — remove Tailwind typography max-width */
.catalog-product-view #description .prose {
    max-width: none !important;
}


/* PDP: product sections (description + attributes) break out to full width */
.catalog-product-view .flex.flex-col.gap-8 {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding-left: max(1.5rem, calc((100vw - 1200px) / 2));
    padding-right: max(1.5rem, calc((100vw - 1200px) / 2));
}
#tab-label-reviews, #reviews, .review-add, .review-form, .reviews-actions { display: none !important; }

/* Category page: tighten spacing */
.page-main { margin-top: 0 !important; }
#category-view-container, .category-view { padding-top: 0 !important; padding-bottom: 0 !important; }
.page-main .container.my-6 { margin-top: 1rem !important; margin-bottom: 0.5rem !important; }

/* Typography */
h1, h2, h3, h4, h5, h6 { font-family: 'Cormorant Garamond', Georgia, serif; }

/* Cookie banner — bottom left, styled */
.cookie-bar-wrapper {
    position: fixed !important;
    bottom: 24px !important;
    left: 24px !important;
    right: auto !important;
    top: auto !important;
    z-index: 9999 !important;
    max-width: 480px !important;
}
.cookie-bar-wrapper > div {
    background: #1A1A1A !important;
    color: #E8E3DE !important;
    border-radius: 12px !important;
    padding: 24px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3) !important;
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
}
.cookie-bar-wrapper p {
    color: #9A958F !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    margin-bottom: 16px !important;
}
.cookie-bar-wrapper strong {
    color: #E8E3DE !important;
    font-size: 15px !important;
}
.cookie-bar-wrapper button {
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    border: 1.5px solid transparent !important;
    margin-right: 8px !important;
    margin-bottom: 8px !important;
}
.cookie-bar-wrapper button:first-child {
    background: #B8834E !important;
    color: #fff !important;
    border-color: #B8834E !important;
}
.cookie-bar-wrapper button:first-child:hover {
    background: #96693A !important;
}
.cookie-bar-wrapper button:nth-child(2) {
    background: transparent !important;
    color: #D4A574 !important;
    border-color: #D4A574 !important;
}
.cookie-bar-wrapper button:nth-child(3) {
    background: transparent !important;
    color: #6B6B6B !important;
    border-color: #3D3D3D !important;
}

/* Sticky USP trust bar */
.page-wrapper > div:first-child {
    position: sticky;
    top: 0;
    z-index: 40;
}

/* Translate "Decline" */

/* Sticky header — entire header bar */
.page-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;
    background-color: #FAF9F6 !important;
}
