/* ==============================
   CUSTOM STYLES FOR THT THEME - CANDIED STYLE
   ============================== */

/* ==============================
   DECORATIVE STARBURSTS & SPARKLES
   ============================== */

.site-title::before {
    content: '✨';
    margin-right: 10px;
}

.site-title::after {
    content: '✨';
    margin-left: 10px;
}

/* ==============================
   SMOOTH ANIMATIONS
   ============================== */

* {
    scroll-behavior: smooth;
}

/* ==============================
   WOOCOMMERCE INTEGRATION (if active)
   ============================== */

.woocommerce {
    font-family: 'Fredoka', sans-serif;
}



.woocommerce .stars {
    color: #fff9c4;
}

/* ==============================
   SEARCH FORM
   ============================== */

.search-form {
    display: flex;
    gap: 10px;
}

.search-form input[type="search"] {
    border: 2px solid #ffb3d9;
    border-radius: 25px;
    padding: 10px 20px;
    font-family: 'Fredoka', sans-serif;
}

.search-form input[type="search"]:focus {
    border-color: #ff8fb1;
}

.search-form button {
    background: linear-gradient(135deg, #ff8fb1, #ffb3d9);
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-form button:hover {
    background: linear-gradient(135deg, #ff6b9d, #ff9fb5);
}

/* ==============================
   BREADCRUMBS
   ============================== */

.breadcrumb {
    color: #d4568c;
    margin: 20px 0;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: #ff8fb1;
}

.breadcrumb a:hover {
    color: #ff6b9d;
    text-decoration: underline;
}

/* ==============================
   POST NAVIGATION
   ============================== */

.post-navigation a {
    background: linear-gradient(135deg, #ffb3d9, #b3e5fc);
    color: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.post-navigation a:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #ff8fb1, #80deea);
    box-shadow: 0 10px 25px rgba(255, 143, 177, 0.3);
}
.thin-icon {
  opacity: 0.5;
}
/* ==============================
   SCROLLBAR STYLING
   ============================== */

::-webkit-scrollbar {
    width: 3px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 248, 240, 0.5);
}


/* ==============================
   SELECTION STYLING
   ============================== */

/* ::selection {
    background: linear-gradient(135deg, #ff8fb1, #ffb3d9);
    color: #fff;
} */

/* ::-moz-selection {
    background: linear-gradient(135deg, #ff8fb1, #ffb3d9);
    color: #fff;
} */

/* ==============================
   TRANSITION & ANIMATION ENHANCEMENTS
   ============================== */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.category-card {
    animation: slideInUp 0.6s ease-out forwards;
}

/* ==============================
   ACCESSIBILITY
   ============================== */



/* ==============================
   SKIP TO CONTENT LINK
   ============================== */
a::focus-visible {
    outline: none;
    outline-offset: none;
}
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #ff8fb1;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 0 0 5px 0;
}

.skip-to-content:focus {
    top: 0;
}

/* ==============================
   SHOP PAGE STYLES - MOVED TO shop-page.css
   
   All shop page styles have been moved to a separate stylesheet
   that only loads on the CỬA HÀNG (shop) page.
   See: wp-content/themes/tht/css/shop-page.css
   ============================== */

/* ==============================
   THEME BREADCRUMB STYLES
   Applies to .tht-breadcrumb inserted in templates
   ============================== */
.tht-breadcrumb {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.95rem;
    color: #6b6b6b;
    text-align: left;
}
.nav-Breadcrumb {
    background: #a9d6db4f;
}
.tht-breadcrumb a {
    color: #7f6ea3;
    text-decoration: none;
}
.tht-breadcrumb a:hover {
    text-decoration: underline;
    color: #5f4a86;
}
.tht-breadcrumb span {
    color: #333333;
    font-weight: 600;
}

@media (max-width: 720px) {
    .tht-breadcrumb {
        font-size: 0.9rem;
        gap: 0.4rem;
    }
}

/* ==============================
   DYNAMIC PRODUCT CARD IMAGE STYLES
   ============================== */

.home-product-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.home-product-card:hover .home-product-img {
    transform: scale(1.06);
}

.home-product-link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
}

.home-product-link-wrapper:hover {
    color: inherit;
}

.home-tiles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
}

/* Adjust home-product-price size and font */
.home-product-price ins {
    text-decoration: none;
    font-weight: bold;
    color: #ff8fb1;
}

.home-product-price del {
    font-size: 0.85em;
    opacity: 0.6;
    margin-right: 5px;
}

@media (hover: none), (pointer: coarse), (max-width: 768px) {
    .home-products-section .home-product-actions {
        position: static;
        margin-top: 14px;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .home-products-section .home-product-card:hover .home-product-actions,
    .home-products-section .home-product-card:focus-within .home-product-actions {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .home-products-section .home-product-action {
        min-height: 40px;
        font-size: 0.82rem;
    }

    .home-products-section .home-product-action:hover {
        transform: none;
    }
}


