/* =========================================================
   SNAKWT - MAIN STYLESHEET
   File: /assets/css/style.css
========================================================= */


/* =========================================================
   1. ROOT VARIABLES
========================================================= */

:root {
    --primary: #16a34a;
    --primary-dark: #15803d;
    --primary-light: #dcfce7;

    --secondary: #f59e0b;

    --dark: #1f2937;
    --text: #374151;
    --muted: #6b7280;

    --border: #e5e7eb;
    --light: #f9fafb;
    --white: #ffffff;

    --danger: #dc2626;

    --shadow-sm:
        0 2px 8px rgba(0, 0, 0, 0.06);

    --shadow:
        0 8px 30px rgba(0, 0, 0, 0.08);

    --radius: 14px;
    --radius-sm: 10px;
}


/* =========================================================
   2. GLOBAL
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: var(--text);
    background: var(--white);

    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: inherit;
}

img {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
}


/* =========================================================
   3. GENERAL BUTTONS
========================================================= */

.btn-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 13px 22px;

    border: none;
    border-radius: 10px;

    font-size: 15px;
    font-weight: 600;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.btn-custom:hover {
    transform: translateY(-2px);
}

.btn-primary-custom {
    color: var(--white);
    background: var(--primary);
}

.btn-primary-custom:hover {
    color: var(--white);
    background: var(--primary-dark);

    box-shadow:
        0 8px 20px rgba(22, 163, 74, 0.22);
}


/* =========================================================
   4. SITE HEADER
========================================================= */

.site-header {
    position: relative;

    z-index: 1000;

    background: var(--white);
}


/* =========================================================
   5. MAIN HEADER
========================================================= */

.main-header {
    background: var(--white);
}


/* =========================================================
   6. LOGO
========================================================= */

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;

    white-space: nowrap;
}

.logo-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--white);
    background: var(--primary);

    border-radius: 12px;

    font-size: 18px;
}

.logo-text {
    color: var(--dark);

    font-size: 23px;
    font-weight: 800;

    letter-spacing: -0.7px;
}

.logo-text span {
    color: var(--primary);
}


/* =========================================================
   7. HEADER SEARCH
========================================================= */

.header-search {
    width: 100%;
    max-width: 550px;

    height: 46px;

    display: flex;
    align-items: center;

    border: 1px solid var(--border);
    border-radius: 10px;

    overflow: hidden;

    background: var(--light);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.header-search:focus-within {
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px rgba(22, 163, 74, 0.08);
}

.header-search input {
    flex: 1;

    height: 100%;

    border: none;
    outline: none;

    padding: 0 16px;

    background: transparent;

    font-size: 14px;
}

.header-search button {
    width: 52px;
    height: 100%;

    border: none;

    color: var(--white);
    background: var(--primary);

    transition: background 0.2s ease;
}

.header-search button:hover {
    background: var(--primary-dark);
}


/* =========================================================
   8. HEADER ACTIONS
========================================================= */

.header-actions {
    flex-shrink: 0;
}

.header-action {
    display: flex;
    align-items: center;

    gap: 10px;

    color: var(--dark);

    transition: color 0.2s ease;
}

.header-action:hover {
    color: var(--primary);
}

.header-action-icon {
    position: relative;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--light);

    border-radius: 50%;

    font-size: 17px;
}

.header-action-content {
    display: flex;
    flex-direction: column;

    line-height: 1.25;
}

.header-action-content small {
    color: var(--muted);
    font-size: 11px;
}

.header-action-content strong {
    color: var(--dark);

    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   9. CART COUNT
========================================================= */

.cart-count {
    position: absolute;

    top: -6px;
    right: -7px;

    min-width: 18px;
    height: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 5px;

    color: var(--white);
    background: var(--danger);

    border-radius: 50%;

    font-size: 10px;
    font-weight: 700;

    line-height: 1;
}


/* =========================================================
   10. MOBILE HEADER ICON
========================================================= */

.mobile-header-icon {
    position: relative;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--dark);
    background: var(--light);

    border-radius: 50%;

    font-size: 16px;
}


/* =========================================================
   11. DESKTOP NAVIGATION
========================================================= */

.main-navigation {
    background: var(--white);

    border-bottom: 1px solid var(--border);
}

.nav-list {
    display: flex;
    align-items: center;

    gap: 4px;

    list-style: none;

    padding: 0;
}

.nav-list li a {
    position: relative;

    display: block;

    padding: 15px 17px;

    color: #4b5563;

    font-size: 14px;
    font-weight: 500;

    transition: color 0.2s ease;
}

.nav-list li a:hover,
.nav-list li a.active {
    color: var(--primary);
}

.nav-list li a.active::after {
    content: "";

    position: absolute;

    left: 17px;
    right: 17px;
    bottom: 0;

    height: 2px;

    background: var(--primary);

    border-radius: 5px;
}


/* =========================================================
   12. HERO SECTION
========================================================= */

.hero-banner {
    position: relative;

    min-height: 440px;

    display: flex;
    align-items: center;

    padding: 60px;

    border-radius: 22px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #ecfdf5 0%,
            #dcfce7 100%
        );

    background-size: cover;
    background-position: center;

    box-shadow: var(--shadow-sm);
}

.hero-content {
    position: relative;

    z-index: 2;

    width: 100%;
    max-width: 580px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;

    margin-bottom: 18px;

    padding: 7px 12px;

    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.75);

    border-radius: 30px;

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    margin-bottom: 18px;

    color: var(--dark);

    font-size: clamp(36px, 5vw, 62px);
    font-weight: 800;

    line-height: 1.08;

    letter-spacing: -1.8px;
}

.hero-title span {
    color: var(--primary);
}

.hero-text {
    max-width: 520px;

    margin-bottom: 28px;

    color: #4b5563;

    font-size: 17px;
    line-height: 1.7;
}


/* =========================================================
   13. CAROUSEL
========================================================= */

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 42px;
    height: 42px;

    padding: 12px;

    background-color: rgba(31, 41, 55, 0.35);

    border-radius: 50%;

    background-size: 45%;
}

.carousel-indicators {
    margin-bottom: 16px;
}

.carousel-indicators [data-bs-target] {
    width: 9px;
    height: 9px;

    border: none;
    border-radius: 50%;

    background-color: var(--primary);
}


/* =========================================================
   14. SECTION TITLE
========================================================= */

.section-title {
    color: var(--dark);

    font-size: 28px;
    font-weight: 750;

    letter-spacing: -0.5px;
}


/* =========================================================
   15. CATEGORY SECTION
========================================================= */

.category-card {
    height: 100%;

    padding: 22px 15px;

    text-align: center;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.category-card:hover {
    transform: translateY(-5px);

    border-color: rgba(22, 163, 74, 0.35);

    box-shadow: var(--shadow);
}

.category-icon {
    width: 86px;
    height: 86px;

    margin:
        0 auto
        14px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--primary);

    background: var(--primary-light);

    border-radius: 50%;

    font-size: 30px;
}

.category-icon img {
    display: block;
}

.category-title {
    margin: 0;

    color: var(--dark);

    font-size: 14px;
    font-weight: 650;

    line-height: 1.4;
}


/* =========================================================
   16. PRODUCT SECTION
========================================================= */

.product-section {
    padding:
        60px 0;

    background: var(--light);
}


/* =========================================================
   17. PRODUCT CARD
========================================================= */

.product-card {
    position: relative;

    height: 100%;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.product-card:hover {
    transform: translateY(-5px);

    border-color: rgba(22, 163, 74, 0.3);

    box-shadow: var(--shadow);
}


/* =========================================================
   18. PRODUCT IMAGE
========================================================= */

.product-image-wrapper {
    position: relative;

    height: 220px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #f8fafc;
}

.product-image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.35s ease;
}

.product-card:hover .product-image {
    transform: scale(1.06);
}


/* =========================================================
   19. DISCOUNT BADGE
========================================================= */

.discount-badge {
    position: absolute;

    top: 12px;
    left: 12px;

    padding: 5px 9px;

    color: var(--white);
    background: var(--danger);

    border-radius: 7px;

    font-size: 11px;
    font-weight: 700;
}


/* =========================================================
   20. PRODUCT INFO
========================================================= */

.product-info {
    flex: 1;

    display: flex;
    flex-direction: column;

    padding: 18px;
}

.product-category {
    margin-bottom: 7px;

    color: var(--primary);

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    margin-bottom: 8px;

    color: var(--dark);

    font-size: 16px;
    font-weight: 650;

    line-height: 1.4;
}

.product-title a {
    color: inherit;
}

.product-title a:hover {
    color: var(--primary);
}

.product-description {
    display: -webkit-box;

    margin-bottom: 15px;

    overflow: hidden;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.6;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}


/* =========================================================
   21. PRODUCT PRICE
========================================================= */

.product-price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 7px;
}

.current-price {
    color: var(--primary-dark);

    font-size: 17px;
    font-weight: 750;
}

.old-price {
    color: #9ca3af;

    font-size: 12px;

    text-decoration: line-through;
}


/* =========================================================
   22. ADD TO CART BUTTON
========================================================= */

.btn-icon {
    width: 40px;
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 10px;

    color: var(--white);
    background: var(--primary);

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.btn-icon:hover {
    background: var(--primary-dark);

    transform: scale(1.05);
}


/* =========================================================
   23. PROMO BANNER
========================================================= */

.promo-banner {
    position: relative;

    min-height: 310px;

    display: flex;
    align-items: center;

    padding: 50px 60px;

    overflow: hidden;

    color: var(--white);

    background:
        linear-gradient(
            135deg,
            #166534,
            #16a34a
        );

    border-radius: 22px;
}

.promo-content {
    position: relative;

    z-index: 2;

    max-width: 570px;
}

.promo-tag {
    display: inline-block;

    margin-bottom: 14px;

    padding: 7px 12px;

    color: #fef3c7;
    background: rgba(255, 255, 255, 0.15);

    border-radius: 30px;

    font-size: 12px;
    font-weight: 700;
}

.promo-content h2 {
    color: var(--white);

    font-size: clamp(28px, 4vw, 43px);
    font-weight: 800;

    line-height: 1.15;

    letter-spacing: -1px;
}

.promo-content p {
    max-width: 520px;

    margin: 16px 0 24px;

    color: rgba(255, 255, 255, 0.8);

    font-size: 16px;
    line-height: 1.6;
}

.promo-content .btn-primary-custom {
    color: var(--primary-dark);
    background: var(--white);
}

.promo-content .btn-primary-custom:hover {
    color: var(--primary-dark);
    background: #f3f4f6;
}

.promo-banner-bg {
    position: absolute;

    right: 5%;
    bottom: -50px;

    color: rgba(255, 255, 255, 0.1);

    font-size: 260px;

    transform: rotate(-12deg);
}


/* =========================================================
   24. NEWSLETTER
========================================================= */

.newsletter-section {
    padding:
        40px 0
        70px;
}

.newsletter-box {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 35px;

    padding: 42px 45px;

    background: #f0fdf4;

    border: 1px solid #bbf7d0;
    border-radius: 20px;
}

.newsletter-box h2 {
    color: var(--dark);

    font-size: 27px;
    font-weight: 750;
}

.newsletter-form {
    width: 100%;
    max-width: 470px;

    display: flex;

    gap: 10px;
}

.newsletter-form input {
    min-width: 0;

    height: 48px;

    border: 1px solid var(--border);

    font-size: 14px;
}

.newsletter-form input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px rgba(22, 163, 74, 0.08);
}

.newsletter-form .btn-custom {
    flex-shrink: 0;

    height: 48px;
}


/* =========================================================
   25. MOBILE MENU
========================================================= */

.offcanvas {
    width: min(330px, 88vw);
}

.offcanvas-header {
    min-height: 70px;
}

.mobile-search {
    position: relative;

    display: flex;

    border: 1px solid var(--border);
    border-radius: 10px;

    overflow: hidden;
}

.mobile-search input {
    flex: 1;

    height: 45px;

    min-width: 0;

    border: none;
    outline: none;

    padding: 0 14px;

    font-size: 14px;
}

.mobile-search button {
    width: 48px;

    border: none;

    color: var(--white);
    background: var(--primary);
}

.mobile-nav-list {
    margin: 0;
    padding: 0;
}

.mobile-nav-list li {
    border-bottom: 1px solid #f1f5f9;
}

.mobile-nav-list li a {
    display: flex;
    align-items: center;

    gap: 14px;

    padding: 15px 8px;

    color: var(--dark);

    font-size: 15px;
    font-weight: 500;

    transition: color 0.2s ease;
}

.mobile-nav-list li a i {
    width: 22px;

    color: var(--muted);
}

.mobile-nav-list li a.active,
.mobile-nav-list li a:hover {
    color: var(--primary);
}

.mobile-nav-list li a.active i,
.mobile-nav-list li a:hover i {
    color: var(--primary);
}

.mobile-account-link {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 12px 8px;

    color: var(--dark);

    font-size: 14px;
    font-weight: 600;
}


/* =========================================================
   26. FOOTER
========================================================= */

.site-footer {
    margin-top: 0;

    color: #d1d5db;

    background: #111827;
}

.footer-main {
    padding:
        65px 0
        50px;
}

.footer-logo .logo-text {
    color: var(--white);
}

.footer-description {
    max-width: 340px;

    margin-bottom: 22px;

    color: #9ca3af;

    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   27. FOOTER SOCIAL
========================================================= */

.footer-socials {
    display: flex;

    gap: 10px;
}

.footer-socials a {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #d1d5db;
    background: #1f2937;

    border-radius: 9px;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.footer-socials a:hover {
    color: var(--white);
    background: var(--primary);

    transform: translateY(-2px);
}


/* =========================================================
   28. FOOTER LINKS
========================================================= */

.footer-heading {
    margin-bottom: 20px;

    color: var(--white);

    font-size: 15px;
    font-weight: 700;
}

.footer-links {
    margin: 0;
    padding: 0;

    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #9ca3af;

    font-size: 14px;

    transition:
        color 0.2s ease,
        padding 0.2s ease;
}

.footer-links a:hover {
    padding-left: 4px;

    color: var(--primary);
}


/* =========================================================
   29. FOOTER CONTACT
========================================================= */

.footer-contact-list {
    display: flex;
    flex-direction: column;

    gap: 17px;
}

.footer-contact-item {
    display: flex;
    align-items: center;

    gap: 12px;

    color: #d1d5db;
}

a.footer-contact-item:hover {
    color: var(--white);
}

.footer-contact-icon {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--primary);

    background: #1f2937;

    border-radius: 9px;
}

.footer-contact-item span:last-child {
    display: flex;
    flex-direction: column;
}

.footer-contact-item small {
    color: #6b7280;

    font-size: 11px;
}

.footer-contact-item strong {
    color: #d1d5db;

    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   30. FOOTER BOTTOM
========================================================= */

.footer-bottom {
    padding: 20px 0;

    border-top: 1px solid #1f2937;
}

.footer-copyright {
    color: #6b7280;

    font-size: 13px;
}

.footer-copyright a {
    color: var(--primary);
}

.footer-legal-links {
    display: flex;

    gap: 20px;
}

.footer-legal-links a {
    color: #6b7280;

    font-size: 13px;

    transition: color 0.2s ease;
}

.footer-legal-links a:hover {
    color: var(--primary);
}


/* =========================================================
   31. BACK TO TOP
========================================================= */

.back-to-top {
    position: fixed;

    right: 22px;
    bottom: 22px;

    width: 44px;
    height: 44px;

    z-index: 999;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 10px;

    color: var(--white);
    background: var(--primary);

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(10px);

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.15);

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease,
        background 0.2s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
}


/* =========================================================
   32. ALERTS
========================================================= */

.alert {
    border-radius: 10px;

    font-size: 14px;
}


/* =========================================================
   33. RESPONSIVE - TABLET
========================================================= */

@media (max-width: 991.98px) {

    .hero-banner {
        min-height: 390px;

        padding: 45px;
    }

    .newsletter-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .newsletter-form {
        max-width: none;
    }

}


/* =========================================================
   34. RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 767.98px) {

    .main-header .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .logo-icon {
        width: 37px;
        height: 37px;

        border-radius: 10px;

        font-size: 16px;
    }

    .logo-text {
        font-size: 20px;
    }

    .hero-banner {
        min-height: 390px;

        padding: 35px 25px;

        border-radius: 16px;

        background-position: 65% center;
    }

    .hero-title {
        font-size: 38px;

        letter-spacing: -1px;
    }

    .hero-text {
        font-size: 15px;
    }

    .section-title {
        font-size: 23px;
    }

    .category-card {
        padding: 18px 10px;
    }

    .category-icon {
        width: 68px;
        height: 68px;

        font-size: 24px;
    }

    .category-title {
        font-size: 12px;
    }

    .product-section {
        padding: 45px 0;
    }

    .product-image-wrapper {
        height: 175px;
    }

    .product-info {
        padding: 13px;
    }

    .product-title {
        font-size: 14px;
    }

    .current-price {
        font-size: 15px;
    }

    .btn-icon {
        width: 36px;
        height: 36px;

        border-radius: 8px;
    }

    .promo-banner {
        min-height: 350px;

        padding: 35px 25px;

        border-radius: 16px;
    }

    .promo-content h2 {
        font-size: 30px;
    }

    .promo-banner-bg {
        right: -30px;

        font-size: 180px;
    }

    .newsletter-section {
        padding:
            30px 0
            50px;
    }

    .newsletter-box {
        padding: 30px 22px;

        border-radius: 16px;
    }

    .newsletter-box h2 {
        font-size: 23px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form .btn-custom {
        width: 100%;
    }

    .footer-main {
        padding:
            50px 0
            35px;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-legal-links {
        justify-content: center;
    }

    .back-to-top {
        right: 15px;
        bottom: 15px;

        width: 40px;
        height: 40px;
    }

}


/* =========================================================
   35. SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .hero-banner {
        padding: 30px 20px;
    }

    .hero-title {
        font-size: 32px;
    }

    .product-image-wrapper {
        height: 145px;
    }

    .product-info {
        padding: 11px;
    }

    .product-category {
        font-size: 9px;
    }

    .product-title {
        font-size: 13px;
    }

    .old-price {
        display: none;
    }

    .current-price {
        font-size: 14px;
    }

}


/* ==========================================
   PRODUCT LISTING / SHOP PAGE
========================================== */

/* Product Grid */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}


/* ==========================================
   PRODUCT CARD
========================================== */

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    overflow: hidden;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: #d4d4d4;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.08);
}


/* ==========================================
   PRODUCT IMAGE
========================================== */

.product-image-wrap {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    padding: 20px;
    background: #fafafa;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.product-card:hover .product-image {
    transform: scale(1.06);
}


/* ==========================================
   PRODUCT BADGES
========================================== */

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;

    display: inline-flex;
    align-items: center;

    padding: 5px 10px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;

    background: #ecfdf5;
    color: #047857;
}

.product-badge.sale {
    background: #fef2f2;
    color: #dc2626;
}

.product-badge.new {
    background: #eff6ff;
    color: #2563eb;
}


/* ==========================================
   QUICK ACTIONS
========================================== */

.product-actions {
    position: absolute;
    top: 12px;
    right: 12px;

    display: flex;
    flex-direction: column;
    gap: 8px;

    z-index: 3;

    opacity: 0;
    transform: translateX(8px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-action-btn {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #e5e5e5;
    border-radius: 10px;

    background: #ffffff;
    color: #404040;

    cursor: pointer;

    transition: all 0.2s ease;
}

.product-action-btn:hover {
    border-color: #f97316;
    background: #fff7ed;
    color: #ea580c;
}


/* ==========================================
   PRODUCT CONTENT
========================================== */

.product-content {
    display: flex;
    flex: 1;
    flex-direction: column;

    padding: 16px;
}

.product-category {
    display: block;

    margin-bottom: 7px;

    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;

    color: #737373;
}

.product-title {
    display: -webkit-box;
    overflow: hidden;

    margin: 0;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;

    color: #171717;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title a {
    color: inherit;
    text-decoration: none;

    transition: color 0.2s ease;
}

.product-title a:hover {
    color: #ea580c;
}


/* ==========================================
   PRODUCT PRICE
========================================== */

.product-price-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 12px;
}

.product-price {
    font-size: 17px;
    font-weight: 700;

    color: #171717;
}

.product-old-price {
    font-size: 13px;
    color: #a3a3a3;

    text-decoration: line-through;
}

.product-discount {
    padding: 3px 6px;

    border-radius: 5px;

    font-size: 10px;
    font-weight: 700;

    background: #ecfdf5;
    color: #059669;
}


/* ==========================================
   PRODUCT STOCK
========================================== */

.product-stock {
    display: flex;
    align-items: center;
    gap: 6px;

    margin-top: 12px;

    font-size: 12px;
    font-weight: 500;

    color: #737373;
}

.product-stock-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #22c55e;
}

.product-stock.out-of-stock {
    color: #dc2626;
}

.product-stock.out-of-stock .product-stock-dot {
    background: #ef4444;
}


/* ==========================================
   PRODUCT CARD FOOTER
========================================== */

.product-card-footer {
    display: flex;
    gap: 10px;

    margin-top: auto;
    padding-top: 16px;
}

.product-add-cart {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 42px;

    padding: 0 14px;

    border: 0;
    border-radius: 10px;

    background: #f97316;
    color: #ffffff;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
    cursor: pointer;

    transition: all 0.2s ease;
}

.product-add-cart:hover {
    background: #ea580c;
    color: #ffffff;
}

.product-view-btn {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #e5e5e5;
    border-radius: 10px;

    color: #525252;
    background: #ffffff;

    text-decoration: none;

    transition: all 0.2s ease;
}

.product-view-btn:hover {
    border-color: #f97316;
    color: #ea580c;
    background: #fff7ed;
}


/* ==========================================
   SHOP SIDEBAR
========================================== */

.shop-sidebar {
    width: 260px;
    flex-shrink: 0;

    padding: 20px;

    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
}

.shop-filter-title {
    margin: 0 0 16px;

    font-size: 16px;
    font-weight: 700;

    color: #171717;
}

.shop-filter-section {
    padding: 18px 0;

    border-top: 1px solid #eeeeee;
}

.shop-filter-section:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.shop-filter-label {
    display: block;

    margin-bottom: 10px;

    font-size: 13px;
    font-weight: 600;

    color: #404040;
}


/* ==========================================
   CATEGORY FILTER
========================================== */

.shop-category-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shop-category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 9px 10px;

    border-radius: 8px;

    font-size: 13px;

    color: #525252;
    text-decoration: none;

    transition: all 0.2s ease;
}

.shop-category-item:hover,
.shop-category-item.active {
    background: #fff7ed;
    color: #ea580c;
}

.shop-category-count {
    font-size: 11px;
    color: #a3a3a3;
}


/* ==========================================
   SHOP TOP BAR
========================================== */

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    margin-bottom: 24px;
}

.shop-results-count {
    font-size: 14px;
    color: #737373;
}

.shop-sort-select {
    min-width: 180px;

    height: 42px;

    padding: 0 38px 0 14px;

    border: 1px solid #d4d4d4;
    border-radius: 9px;

    background-color: #ffffff;

    font-size: 13px;
    color: #404040;

    outline: none;
}

.shop-sort-select:focus {
    border-color: #f97316;

    box-shadow:
        0 0 0 3px rgba(249, 115, 22, 0.1);
}


/* ==========================================
   EMPTY PRODUCTS
========================================== */

.shop-empty {
    padding: 70px 20px;

    text-align: center;

    background: #ffffff;
    border: 1px dashed #d4d4d4;
    border-radius: 16px;
}

.shop-empty-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 16px;

    border-radius: 50%;

    background: #f5f5f5;
    color: #737373;

    font-size: 24px;
}

.shop-empty h3 {
    margin: 0 0 8px;

    font-size: 18px;
    font-weight: 700;

    color: #171717;
}

.shop-empty p {
    margin: 0;

    font-size: 14px;

    color: #737373;
}


/* ==========================================
   PRODUCT LISTING RESPONSIVE
========================================== */

@media (max-width: 1200px) {

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


@media (max-width: 1024px) {

    .shop-sidebar {
        width: 220px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 768px) {

    .shop-sidebar {
        width: 100%;
    }

    .shop-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .shop-sort-select {
        width: 100%;
    }

    .product-actions {
        opacity: 1;
        transform: none;
    }

}


@media (max-width: 480px) {

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-image-wrap {
        padding: 12px;
    }

    .product-content {
        padding: 12px;
    }

    .product-title {
        font-size: 13px;
    }

    .product-price {
        font-size: 15px;
    }

    .product-old-price {
        font-size: 11px;
    }

    .product-card-footer {
        padding-top: 12px;
    }

    .product-add-cart {
        min-height: 38px;

        padding: 0 8px;

        font-size: 11px;
    }

    .product-view-btn {
        width: 38px;
        height: 38px;
    }

    .product-badge {
        top: 8px;
        left: 8px;

        padding: 4px 7px;

        font-size: 9px;
    }

    .product-actions {
        top: 8px;
        right: 8px;
    }

    .product-action-btn {
        width: 32px;
        height: 32px;
    }

}


/* ==========================================
   PRODUCT DETAILS PAGE - MAIN SECTION ONLY
========================================== */


/* ------------------------------------------
   MAIN PRODUCT AREA
------------------------------------------ */

main.bg-neutral-50 {
    min-height: 100vh;
}


/* ------------------------------------------
   BREADCRUMB
------------------------------------------ */

main.bg-neutral-50 nav a {
    transition: color 0.2s ease;
}

main.bg-neutral-50 nav a:hover {
    color: #f97316;
}


/* ------------------------------------------
   MAIN PRODUCT IMAGE
------------------------------------------ */

#mainProductImage {
    transition: transform 0.4s ease;
}

#mainProductImage:hover {
    transform: scale(1.04);
}


/* ------------------------------------------
   PRODUCT IMAGE CONTAINER
------------------------------------------ */

.product-image-gallery {
    position: relative;
}

.product-image-gallery > div {
    background: #fff;
}


/* ------------------------------------------
   PRODUCT TITLE
------------------------------------------ */

main.bg-neutral-50 h1 {
    line-height: 1.2;
}


/* ------------------------------------------
   PRICE AREA
------------------------------------------ */

.product-price {
    letter-spacing: -0.02em;
}


/* ------------------------------------------
   STOCK STATUS
------------------------------------------ */

.product-stock-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}


/* ------------------------------------------
   QUANTITY SELECTOR
------------------------------------------ */

#quantity {
    -moz-appearance: textfield;
    outline: none;
}

#quantity::-webkit-outer-spin-button,
#quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#decreaseQuantity,
#increaseQuantity {
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

#decreaseQuantity:hover,
#increaseQuantity:hover {
    background-color: #fff7ed;
    color: #ea580c;
}

#decreaseQuantity:active,
#increaseQuantity:active {
    transform: scale(0.95);
}


/* ------------------------------------------
   ADD TO CART BUTTON
------------------------------------------ */

form[action*="/cart/add"] button[type="submit"] {
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

form[action*="/cart/add"] button[type="submit"]:hover {
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.22);
}

form[action*="/cart/add"] button[type="submit"]:active {
    transform: scale(0.98);
}


/* ------------------------------------------
   PRODUCT INFORMATION DETAILS
------------------------------------------ */

.product-meta {
    border-top: 1px solid #e5e5e5;
}

.product-meta-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.product-meta-label {
    min-width: 96px;
    color: #737373;
}

.product-meta-value {
    font-weight: 500;
    color: #262626;
}


/* ------------------------------------------
   PRODUCT DESCRIPTION
------------------------------------------ */

.product-description {
    max-width: 900px;
    color: #525252;
    line-height: 1.8;
}

.product-description p {
    margin-bottom: 16px;
}

.product-description h2,
.product-description h3,
.product-description h4 {
    margin-top: 24px;
    margin-bottom: 12px;
    color: #171717;
    font-weight: 700;
}

.product-description ul,
.product-description ol {
    padding-left: 24px;
    margin: 16px 0;
}

.product-description ul {
    list-style: disc;
}

.product-description ol {
    list-style: decimal;
}

.product-description li {
    margin-bottom: 7px;
}

.product-description img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 12px;
}


/* ------------------------------------------
   PRODUCT GALLERY
   Future product_images support
------------------------------------------ */

.product-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.product-thumbnail {
    width: 76px;
    height: 76px;
    padding: 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 12px;

    cursor: pointer;
    overflow: hidden;

    transition:
        border-color 0.2s ease,
        transform 0.2s ease;
}

.product-thumbnail:hover {
    border-color: #f97316;
    transform: translateY(-2px);
}

.product-thumbnail.active {
    border-color: #f97316;
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* ------------------------------------------
   OUT OF STOCK BUTTON
------------------------------------------ */

.product-out-of-stock {
    opacity: 0.6;
    cursor: not-allowed;
}


/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 1024px) {

    #mainProductImage {
        padding: 20px !important;
    }

}


@media (max-width: 640px) {

    /* Breadcrumb horizontal overflow */

    main.bg-neutral-50 nav {
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }

    main.bg-neutral-50 nav::-webkit-scrollbar {
        display: none;
    }


    /* Product title */

    main.bg-neutral-50 h1 {
        font-size: 30px;
    }


    /* Gallery */

    .product-thumbnail {
        width: 64px;
        height: 64px;
        border-radius: 10px;
    }


    /* Product details rows */

    .product-meta-row {
        flex-direction: column;
        gap: 4px;
    }

    .product-meta-label {
        min-width: auto;
    }

}


@media (max-width: 480px) {

    #mainProductImage {
        padding: 12px !important;
    }

    main.bg-neutral-50 h1 {
        font-size: 26px;
    }

}