/* --- Custom Font & Color Palette --- */
@font-face {
    font-family: 'MyCustomFont';
    src: url('../fonts/font.ttf') format('truetype');
}

:root {
    --brand-pink: #eab8c5;
    --brand-green: #637a54;
    --brand-light-gray: #f8f9fa;
    --text-dark: #343a40;
}

/* --- General Body Styles --- */
body {
    font-family: 'MyCustomFont', sans-serif;
    background-color: #ffffff;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main.content {
    flex-grow: 1;
}
/* layout.html იყენებს main.main-content, ამიტომ დავამატებ */
main.main-content {
    flex-grow: 1;
}

.container {
    max-width: 1200px;
}

/* --- Header Banner --- */
.header-banner {
    width: 100%;
    height: 280px;
    background-image: url('../images/img.png');
    background-size: cover;
    background-position: center 65%; /* <-- შეცვალე ამით */
    background-repeat: no-repeat;
}

/* --- Main Navigation (Bootstrap Navbar) --- */
.main-nav {
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    background-color: white !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    z-index: 1030 !important; /* Higher than filter cards */
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    padding: 0.5rem 0.8rem;
    font-size: 1rem;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--brand-pink);
}

/* --- ენის ღილაკის სიგანის ფიქსაცია --- */
#languageDropdown {
    min-width: 45px; /* ანიჭებს მინიმალურ სიგანეს */
    text-align: center; /* ტექსტს (KA/GE) აყენებს ცენტრში */
    display: inline-block;
}

.social-icons a {
    color: var(--text-dark);
    margin-left: 15px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--brand-pink);
}

/* --- Product Card Grid (Homepage) --- */
.products-placeholder {
    padding: 100px 0;
    text-align: center;
    border: 1px dashed #ced4da;
    border-radius: 8px;
    background-color: #f8f9fa;
    color: #6c757d;
    font-size: 1.2rem;
}

.product-card {
    border: 1px solid #f0e4e7;
    border-radius: 8px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.product-card .card-img-top {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-card .card-body {
    padding: 1rem;
}

.product-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card .price {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--brand-green);
}

.product-card .card-footer {
    background-color: white;
    border-top: 1px solid #f0f0f0;
    padding: 0.75rem 1rem;
}

/* --- Custom Buttons --- */
.btn-primary-custom {
    background-color: var(--brand-green); /* <-- აქ შევცვალეთ */
    border-color: var(--brand-green);     /* <-- და აქ */
    color: #ffffff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.btn-primary-custom:hover {
    background-color: #526645; /* <-- მწვანის მუქი ვერსია */
    border-color: #526645;     /* <-- მწვანის მუქი ვერსია */
    color: #ffffff;
}

/* --- Discounts Section (Legacy - removed) --- */

.thumbnails-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.thumbnails-wrapper img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.thumbnails-wrapper img:hover {
    transform: scale(1.05);
}
/* Wishlist Button on Product Card */
.product-card {
    position: relative;
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-pink);
    border: 1px solid #eee;
}

.wishlist-btn.active, .wishlist-btn:hover {
    background-color: var(--brand-pink);
    color: white;
}
/* --- NEW: Toast Notification Styles --- */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-message {
    background-color: var(--text-dark);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s ease-in-out;
}

.toast-message.show {
    opacity: 1;
    transform: translateX(0);
}


/* --- NEW: Wishlist Removal Animation --- */
.product-grid .col {
    transition: all 0.3s ease-in-out;
}

.product-grid .col.is-removing {
    transform: scale(0.9);
    opacity: 0;
}
/* --- Sale Price Styles --- */
.price-wrapper {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    min-height: 1.5rem; /* Prevents layout shift */
}
.price {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--brand-green);
}
.price.sale-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d5016; /* Dark green for sale price */
}
.old-price {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.9rem;
}
.old-price.regular-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
}
.sale-badge {
    background: linear-gradient(135deg, #637a54 0%, #526845 100%);
    color: white;
    padding: 0.2rem 0.45rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
}
.sale-badge-image {
    background: linear-gradient(135deg, #637a54 0%, #526845 100%);
    color: white;
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 5;
}
.product-image-wrapper {
    position: relative;
    overflow: hidden;
}
/* --- Discounts Section Styling --- */
.discounts-section-wrapper {
    margin: 3rem 0;
    position: relative;
}

.discounts-title {
    color: #2d5016;
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 0;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.discounts-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #637a54 0%, #a3b899 100%);
    border-radius: 2px;
}

.discounts-section-wrapper .product-card {
    border: 1px solid #e8f5e9;
    background: white;
    transition: all 0.3s ease;
    position: relative;
}

.discounts-section-wrapper .product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #637a54 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.discounts-section-wrapper .product-card:hover {
    border-color: #a3b899;
    box-shadow: 0 4px 12px rgba(99, 122, 84, 0.1);
    transform: translateY(-4px);
}

.discounts-section-wrapper .product-card:hover::before {
    opacity: 1;
}

/* --- Gift Set Card Styles --- */
.gift-set-card {
    border: none;
    min-height: 280px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}
.gift-set-card .card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gift-set-card:hover .card-img {
    transform: scale(1.05);
}
.gift-set-card .card-img-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
    border-radius: 15px;
    padding: 1.5rem;
}
.gift-set-card .card-title {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}


/* =============================================
   *** CATEGORY GRID IMAGE CROP FIX ***
============================================= */

.category-grid .category-card {
    text-decoration: none;
    color: inherit;
}
.category-grid .category-card .card {
    border: 1px solid #eee;
    transition: box-shadow 0.3s ease;
    padding: 0;
    overflow: hidden;
}
.category-grid .category-card .card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}
.category-grid .category-card .category-image-wrapper {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    width: 100%;
}
.category-grid .category-card .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.category-grid .category-card .card-body {
    padding: 0.75rem;
}
.category-grid .category-card .card-title {
    font-size: 0.9rem;
    font-weight: 500;
}

/* =============================================
   *** NEW: Contact Page Styles ***
============================================= */
.contact-info-box {
    background-color: var(--brand-light-gray, #f8f9fa); /* Fallback color */
    padding: 2rem;
    border-radius: 8px;
    height: 100%;
}
.contact-info-box h4 {
    color: var(--brand-green, #637a54); /* Fallback color */
    margin-bottom: 1.5rem;
}
.contact-info-list {
    list-style: none;
    padding-left: 0;
}
.contact-info-list li {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}
.contact-info-list li i {
    font-size: 1.5rem;
    color: var(--brand-pink, #eab8c5); /* Fallback color */
    margin-right: 15px;
    width: 30px; /* Aligns text */
    text-align: center;
}
.contact-info-list li a {
    text-decoration: none;
    color: var(--text-dark, #343a40); /* Fallback color */
    transition: color 0.3s ease;
}
.contact-info-list li a:hover {
    color: var(--brand-pink, #eab8c5); /* Fallback color */
}
.contact-info-list li span {
    color: #6c757d; /* Muted color for placeholder */
}
.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 300px; /* Ensure it has height */
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}
.map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* =============================================
   Legal Page
============================================= */
.legal-section {
    line-height: 1.7;
}

.legal-section ul {
    padding-left: 1.2rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
}

/* Footer legal links */
.footer-legal-wrapper {
    line-height: 1.6;
}

.footer-legal-links {
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.footer-legal-links a {
    margin: 0 0.35rem;
}