/*
Theme Name:   Astra Child
Theme URI:    https://wpastra.com/child-theme/
Description:  Astra Child Theme
Author:       Home & Kkids
Author URI:   https://homeandkkids.com
Template:     astra
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  astra-child
*/

/* ========================================================================= */
/* WooCommerce Subcategory Grid Layout */
/* ========================================================================= */
ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

ul.products li.product-category {
    list-style: none;
    text-align: center;
}

ul.products li.product-category img {
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
}

ul.products li.product-category h2 {
    font-size: 14px;
    margin-top: 10px;
}

ul.products li.product-category .hk-cat-icon-wrapper {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    border-radius: 10px;
    transition: 0.3s;
}

ul.products li.product-category:hover .hk-cat-icon-wrapper {
    background: #f3e8ff; /* Light pastel highlight */
}

ul.products li.product-category .hk-cat-icon {
    font-size: 60px;
    color: var(--color-primary, #9333ea);
    transition: 0.3s;
}

ul.products li.product-category:hover .hk-cat-icon {
    transform: scale(1.1);
}

/* ─────────────────────────────────────────
 * 11. STORE GALLERY
 * ───────────────────────────────────────── */
.hk-store-gallery {
    padding: 60px 0;
    background-color: #ffffff;
}

.hk-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

@media (min-width: 900px) {
    .hk-gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.hk-gallery-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4/5;
    background-color: #f1f1f1;
    cursor: pointer;
}

.hk-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hk-gallery-item:hover img {
    transform: scale(1.08);
}

.hk-gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 24px;
}

.hk-gallery-item:hover .hk-gallery-overlay {
    opacity: 1;
}

.hk-gallery-overlay span {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    transform: translateY(15px);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hk-gallery-item:hover .hk-gallery-overlay span {
    transform: translateY(0);
}

.hk-gallery-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hk-gallery-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.hk-gallery-btn--primary {
    background-color: #9333ea;
    color: #ffffff;
    border: 2px solid #9333ea;
}

.hk-gallery-btn--primary:hover {
    background-color: #7e22ce;
    border-color: #7e22ce;
    color: #ffffff;
}

.hk-gallery-btn--outline {
    background-color: transparent;
    color: #9333ea;
    border: 2px solid #9333ea;
}

.hk-gallery-btn--outline:hover {
    background-color: #9333ea;
    color: #ffffff;
}
/* ─────────────────────────────────────────
 * 12. CUSTOM HEADER (Home & Kkids)
 * ───────────────────────────────────────── */
:root {
    --header-height: 80px;
    --header-bg: #ffffff;
    --header-text: #333333;
    --header-hover: #9333ea;
    --header-border: #eaeaea;
}

/* Base Header Layout */
.hk-header {
    background: var(--header-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-bottom: 1px solid var(--header-border);
    transition: transform 0.3s ease;
}

.hk-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand Identity */
.hk-header__brand a {
    font-size: 26px;
    font-weight: 800;
    color: var(--header-text);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.hk-header__brand-accent {
    color: var(--header-hover);
}

/* Desktop Navigation */
.hk-header__nav {
    display: none; /* Hidden on mobile */
}

.hk-header__nav-close {
    display: none;
}

@media (min-width: 900px) {
    .hk-header__nav {
        display: block;
        flex: 1;
        margin: 0 40px;
    }
    
    .hk-header__menu {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
        gap: 32px;
    }
    
    .hk-header__menu > li > a {
        color: var(--header-text);
        text-decoration: none;
        font-weight: 500;
        font-size: 16px;
        transition: color 0.3s;
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 10px 0;
    }
    
    .hk-header__menu > li > a:hover {
        color: var(--header-hover);
    }
    
    /* Dropdown Styles */
    .hk-header__menu-item-has-children {
        position: relative;
    }
    
    .hk-header__dropdown-icon {
        font-size: 18px;
        transition: transform 0.3s;
    }
    
    .hk-header__menu-item-has-children:hover .hk-header__dropdown-icon {
        transform: rotate(180deg);
    }
    
    .hk-header__submenu {
        position: absolute;
        top: 100%;
        left: 0;
        background: #ffffff;
        min-width: 220px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        border-radius: 8px;
        padding: 12px 0;
        list-style: none;
        opacity: 0;
        visibility: hidden;
        transform: translateY(15px);
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        border: 1px solid var(--header-border);
    }
    
    .hk-header__menu-item-has-children:hover .hk-header__submenu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .hk-header__submenu li a {
        display: block;
        padding: 10px 20px;
        color: var(--header-text);
        text-decoration: none;
        font-size: 15px;
        transition: background 0.2s, color 0.2s;
    }
    
    .hk-header__submenu li a:hover {
        background: #fdfaef; /* Very light accent background */
        color: var(--header-hover);
    }
}

/* Right Side Actions */
.hk-header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hk-header__icon-btn {
    background: transparent;
    border: none;
    color: var(--header-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
    position: relative;
    padding: 8px;
    border-radius: 50%;
}

.hk-header__icon-btn:hover {
    color: var(--header-hover);
    background: rgba(147, 51, 234, 0.05); /* very subtle purplish tint */
}

/* WhatsApp Highlight Button */
.hk-header__whatsapp-btn {
    background-color: #25D366;
    color: white !important;
    border-radius: 30px;
    padding: 8px 16px 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s, transform 0.3s;
}

.hk-header__whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.hk-header__whatsapp-btn .material-symbols-outlined {
    font-size: 20px;
}

.hk-header__whatsapp-text {
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 899px) {
    .hk-header__whatsapp-text {
        display: none; /* Icon only on mobile inside header */
    }
    .hk-header__whatsapp-btn {
        padding: 8px;
    }
}

/* Cart Badge */
.hk-header__cart-btn {
    position: relative;
}

.hk-header__cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--header-hover);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    height: 18px;
    width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--header-bg);
}

/* Mobile Toggle Hamburger */
.hk-header__mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--header-text);
    cursor: pointer;
    padding: 8px;
    margin-left: -8px;
    z-index: 10;
}

@media (max-width: 899px) {
    .hk-header__mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Ensure brand is centered somewhat or pushed right */
    .hk-header__brand {
        flex: 1;
        margin-left: 16px;
    }
    
    .hk-header__brand a {
        font-size: 22px;
    }
    
    /* Mobile Menu Open State */
    .hk-header__nav {
        display: block; /* Override base display: none */
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: #ffffff;
        box-shadow: 10px 0 30px rgba(0,0,0,0.1);
        padding: 80px 24px 40px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1001;
    }
    
    .hk-header__nav.is-open {
        opacity: 1;
        visibility: visible;
        left: 0;
    }

    /* Overlay when menu is open */
    .hk-header::after {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
        z-index: 1000;
    }
    .hk-header--menu-open::after {
        opacity: 1;
        visibility: visible;
    }

    .hk-header__nav-close {
        display: block;
        background: transparent;
        border: none;
        color: #333;
        position: absolute;
        top: 20px;
        right: 20px;
        cursor: pointer;
        padding: 10px;
        line-height: 1;
        transition: transform 0.3s ease, color 0.3s ease;
        z-index: 100;
    }
    .hk-header__nav-close:hover {
        transform: rotate(90deg);
        color: var(--header-hover);
    }
    
    .hk-header__menu {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    .hk-header__menu > li > a {
        color: var(--header-text);
        text-decoration: none;
        font-size: 18px;
        font-weight: 500;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid var(--header-border);
    }
    
    .hk-header__submenu {
        margin-top: 10px;
        padding-left: 15px;
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .hk-header__submenu li a {
        color: #666;
        text-decoration: none;
        font-size: 15px;
    }
}
