/*
Theme Name: Sera Jinis
Theme URI: https://serajinis.com
Author: Sera Jinis
Author URI: https://serajinis.com
Description: Custom WooCommerce theme for Sera Jinis.
Version: 1.0.0
Text Domain: serajinis
*/

/* ===============================
   1. Basic Reset
================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f8fa;
    color: #1f2937;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

/* ===============================
   2. Top Notice Bar
================================ */

.top-notice {
    background: #e11d48;
    color: #ffffff;
    padding: 8px 15px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

/* ===============================
   3. Main Header
================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.header-main {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo img {
    width: auto;
    max-height: 52px;
}

.header-search {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.header-search input {
    width: 100%;
    height: 46px;
    padding: 0 52px 0 18px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #f9fafb;
    outline: none;
    transition: 0.2s ease;
}

.header-search input:focus {
    border-color: #e11d48;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.1);
}

.search-button {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: #e11d48;
    color: #ffffff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-action {
    min-width: 44px;
    height: 44px;
    padding: 0 13px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: 0.2s ease;
}

.header-action:hover {
    color: #e11d48;
    border-color: #e11d48;
}

/* ===============================
   4. Desktop Navigation
================================ */

.main-navigation {
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
}

.main-navigation ul {
    list-style: none;
    min-height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 34px;
}

.main-navigation a {
    font-size: 15px;
    font-weight: 600;
    transition: 0.2s ease;
}

.main-navigation a:hover {
    color: #e11d48;
}

/* ===============================
   5. Hero Section
================================ */

.hero-section {
    padding: 28px 0 16px;
}

.hero-wrapper {
    min-height: 420px;
    padding: 55px;
    border-radius: 24px;
    background:
        linear-gradient(
            90deg,
            rgba(17, 24, 39, 0.92),
            rgba(17, 24, 39, 0.45)
        ),
        url("assets/images/hero-banner.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-content {
    max-width: 590px;
    color: #ffffff;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 16px;
    padding: 7px 14px;
    border-radius: 999px;
    background: #fbbf24;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
}

.hero-title {
    margin-bottom: 16px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.1;
    font-weight: 800;
}

.hero-description {
    max-width: 520px;
    margin-bottom: 26px;
    color: #f3f4f6;
    font-size: 17px;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 12px;
    background: #e11d48;
    color: #ffffff;
    font-weight: 700;
    transition: 0.2s ease;
}

.primary-button:hover {
    background: #be123c;
    transform: translateY(-2px);
}

/* ===============================
   6. Section Heading
================================ */

.home-section {
    padding: 38px 0;
}

.section-header {
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.section-title {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
}

.section-link {
    color: #e11d48;
    font-size: 14px;
    font-weight: 700;
}

/* ===============================
   7. Category Cards
================================ */

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.category-card {
    padding: 18px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    text-align: center;
    transition: 0.25s ease;
}

.category-card:hover {
    border-color: #e11d48;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transform: translateY(-5px);
}

.category-card img {
    width: 82px;
    height: 82px;
    margin: 0 auto 12px;
    border-radius: 50%;
    object-fit: cover;
}

.category-card h3 {
    font-size: 15px;
    font-weight: 700;
}

/* ===============================
   8. Product Cards
================================ */

.product-grid,
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.product-card,
.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    padding: 12px !important;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    overflow: hidden;
    position: relative;
    transition: 0.25s ease;
}

.product-card:hover,
.woocommerce ul.products li.product:hover {
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.1);
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #f8fafc;
}

.product-image img,
.woocommerce ul.products li.product img {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0 !important;
    border-radius: 14px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.product-card:hover img,
.woocommerce ul.products li.product:hover img {
    transform: scale(1.04);
}

.product-badge,
.onsale {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    right: auto !important;
    min-width: auto !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 5px 10px !important;
    border-radius: 999px !important;
    background: #e11d48 !important;
    color: #ffffff !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
}

.product-info {
    padding: 14px 3px 4px;
}

.product-title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    min-height: 44px;
    padding: 0 !important;
    color: #111827;
    font-size: 15px !important;
    line-height: 1.45;
    font-weight: 700;
}

.product-price,
.woocommerce ul.products li.product .price {
    margin-top: 8px;
    color: #e11d48 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
}

.product-price del,
.woocommerce ul.products li.product .price del {
    margin-right: 7px;
    color: #9ca3af !important;
    font-size: 14px;
    opacity: 1 !important;
}

.add-to-cart,
.woocommerce ul.products li.product .button {
    width: 100%;
    min-height: 44px;
    margin-top: 13px !important;
    padding: 11px 14px !important;
    border-radius: 10px !important;
    background: #111827 !important;
    color: #ffffff !important;
    text-align: center;
    font-size: 14px;
    font-weight: 700 !important;
    transition: 0.2s ease;
}

.add-to-cart:hover,
.woocommerce ul.products li.product .button:hover {
    background: #e11d48 !important;
}

/* ===============================
   9. Trust Features
================================ */

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.trust-card {
    padding: 24px 18px;
    border-radius: 18px;
    background: #ffffff;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.trust-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: rgba(225, 29, 72, 0.1);
    color: #e11d48;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.trust-card h3 {
    margin-bottom: 5px;
    font-size: 16px;
}

.trust-card p {
    color: #6b7280;
    font-size: 14px;
}

/* ===============================
   10. WooCommerce Checkout
================================ */

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
}

.woocommerce form .form-row textarea {
    min-height: 110px;
}

.woocommerce-checkout #payment {
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.woocommerce #payment #place_order {
    width: 100%;
    min-height: 52px;
    border-radius: 12px;
    background: #e11d48;
    font-weight: 700;
}

.woocommerce #payment #place_order:hover {
    background: #be123c;
}

/* ===============================
   11. Footer
================================ */

.site-footer {
    margin-top: 50px;
    padding: 55px 0 95px;
    background: #111827;
    color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 30px;
}

.footer-title {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 9px;
}

.footer-menu a {
    color: #d1d5db;
    transition: 0.2s ease;
}

.footer-menu a:hover {
    color: #ffffff;
}

/* ===============================
   12. WhatsApp Floating Button
================================ */

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 88px;
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #22c55e;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.35);
}

/* ===============================
   13. Mobile Bottom Navigation
================================ */

.mobile-bottom-nav {
    display: none;
}

/* ===============================
   14. Tablet Responsive
================================ */

@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .product-grid,
    .woocommerce ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ===============================
   15. Mobile Responsive
================================ */

@media (max-width: 767px) {
    body {
        padding-bottom: 68px;
    }

    .container {
        width: min(100% - 24px, 1180px);
    }

    .top-notice {
        padding: 7px 10px;
        font-size: 12px;
    }

    .header-main {
        min-height: 62px;
        gap: 10px;
    }

    .site-logo img {
        max-height: 42px;
    }

    .header-actions {
        gap: 7px;
    }

    .header-action {
        min-width: 40px;
        width: 40px;
        height: 40px;
        padding: 0;
    }

    .header-action span {
        display: none;
    }

    .header-search {
        order: 3;
        flex-basis: 100%;
        max-width: none;
    }

    .header-main {
        padding: 10px 0;
        flex-wrap: wrap;
    }

    .header-search input {
        height: 43px;
    }

    .main-navigation {
        display: none;
    }

    .hero-section {
        padding-top: 14px;
    }

    .hero-wrapper {
        min-height: 330px;
        padding: 28px 22px;
        border-radius: 18px;
        background-position: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        margin-bottom: 12px;
        font-size: 33px;
    }

    .hero-description {
        font-size: 15px;
    }

    .home-section {
        padding: 26px 0;
    }

    .section-header {
        margin-bottom: 16px;
    }

    .section-title {
        font-size: 22px;
    }

    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .category-card {
        padding: 12px 7px;
        border-radius: 14px;
    }

    .category-card img {
        width: 62px;
        height: 62px;
        margin-bottom: 8px;
    }

    .category-card h3 {
        font-size: 12px;
    }

    .product-grid,
    .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-card,
    .woocommerce ul.products li.product {
        padding: 8px !important;
        border-radius: 14px;
    }

    .product-title,
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        min-height: 41px;
        font-size: 13px !important;
    }

    .product-price,
    .woocommerce ul.products li.product .price {
        font-size: 16px !important;
    }

    .add-to-cart,
    .woocommerce ul.products li.product .button {
        min-height: 40px;
        padding: 9px 7px !important;
        font-size: 12px;
    }

    .trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .trust-card {
        padding: 17px 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .site-footer {
        padding-bottom: 40px;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1100;
        height: 66px;
        padding: 6px 4px;
        background: #ffffff;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 -5px 22px rgba(15, 23, 42, 0.08);
        display: grid;
        grid-template-columns: repeat(5, 1fr);
    }

    .mobile-bottom-nav a {
        color: #6b7280;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        font-size: 10px;
        font-weight: 600;
    }

    .mobile-bottom-nav a.active,
    .mobile-bottom-nav a:hover {
        color: #e11d48;
    }

    .mobile-bottom-nav .nav-icon {
        font-size: 21px;
        line-height: 1;
    }

    .whatsapp-float {
        right: 14px;
        bottom: 80px;
        width: 50px;
        height: 50px;
    }
}

/* ===============================
   16. Small Mobile
================================ */

@media (max-width: 380px) {
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-title {
        font-size: 28px;
    }
}

/* Logo Size */
.custom-logo{
    max-width:180px;
    height:auto;
}

.site-branding{
    display:flex;
    align-items:center;
}

@media(max-width:768px){
    .custom-logo{
        max-width:120px;
    }
}

/* Header logo size */
.custom-logo {
    width: 160px;
    max-width: 100%;
    height: auto;
}

/* Mobile logo size */
@media (max-width: 768px) {
    .custom-logo {
        width: 110px;
    }
}


/* =========================
   Sera Jinis Header
========================= */

.top-notice {
    background: #b3122f;
    color: #ffffff;
    font-size: 14px;
    text-align: center;
    padding: 8px 15px;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
    position: relative;
    z-index: 999;
}

.header-inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-branding .custom-logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.site-branding img.custom-logo {
    width: 110px !important;
    max-width: 110px !important;
    height: 90px !important;
    max-height: 90px !important;
    object-fit: contain;
}

.site-logo {
    font-size: 26px;
    font-weight: 800;
    color: #b3122f;
    text-decoration: none;
}

.header-search {
    flex: 1;
    max-width: 680px;
}

.header-search form {
    display: flex;
    width: 100%;
    margin: 0;
}

.header-search input[type="search"] {
    width: 100%;
    height: 48px;
    padding: 0 18px;
    border: 1px solid #dfe3e8;
    border-right: 0;
    border-radius: 8px 0 0 8px;
    outline: none;
    font-size: 15px;
}

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

.header-search button,
.header-search input[type="submit"] {
    min-width: 90px;
    height: 48px;
    border: 0;
    border-radius: 0 8px 8px 0;
    background: #b3122f;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-actions a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.header-phone {
    background: #f4f6f8;
    color: #1a2433;
}

.header-cart {
    background: #b3122f;
    color: #ffffff;
}

.action-icon {
    font-size: 17px;
    line-height: 1;
}

.cart-count {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: #ffffff;
    color: #b3122f;
    font-size: 12px;
    font-weight: 700;
}

.main-navigation {
    background: #101827;
}

.primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.primary-menu li {
    margin: 0;
    position: relative;
}

.primary-menu a {
    display: block;
    padding: 14px 17px;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
    background: #b3122f;
}

.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 8px;
    background: #f4f6f8;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    display: block;
    margin: 5px 0;
    background: #101827;
}

/* Tablet */
@media screen and (max-width: 992px) {

    .header-inner {
        flex-wrap: wrap;
        gap: 14px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .header-search {
        order: 3;
        width: 100%;
        max-width: 100%;
        flex-basis: 100%;
    }

    .site-branding {
        margin-right: auto;
    }
}

/* Mobile */
@media screen and (max-width: 768px) {

    .top-notice {
        font-size: 12px;
        padding: 7px 10px;
    }

    .header-inner {
        min-height: auto;
    }

    .site-branding img.custom-logo {
        width: 75px !important;
        max-width: 75px !important;
        height: 65px !important;
        max-height: 65px !important;
    }

    .mobile-menu-toggle {
        display: block;
        order: 2;
    }

    .header-actions {
        order: 2;
        gap: 7px;
    }

    .header-actions a {
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
        padding: 8px 10px;
    }

    .header-phone .action-text,
    .header-cart .action-text {
        display: none;
    }

    .header-search input[type="search"] {
        height: 44px;
        font-size: 14px;
    }

    .header-search button,
    .header-search input[type="submit"] {
        min-width: 72px;
        height: 44px;
        font-size: 13px;
    }

    .main-navigation {
        display: none;
    }

    .primary-menu {
        display: block;
        padding: 8px 0;
    }

    .primary-menu a {
        padding: 13px 16px;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }
}

/* Mobile menu open state */
@media screen and (max-width: 768px) {

    .main-navigation {
        display: none;
        width: 100%;
    }

    .main-navigation.is-open {
        display: block;
    }

    .main-navigation .container {
        width: 100%;
        padding: 0;
    }

    .primary-menu {
        display: block;
        margin: 0;
        padding: 8px 0;
    }

    .primary-menu li {
        width: 100%;
    }

    .primary-menu a {
        display: block;
        width: 100%;
        padding: 14px 18px;
    }

    .mobile-menu-toggle.is-active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.is-active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .mobile-menu-toggle span {
        transition: all 0.25s ease;
    }
}

/* =========================================
   CLICKABLE HOMEPAGE BANNER
========================================= */

.sj-banner-section {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
}

.sj-clickable-banner {
    display: block;
    width: 100%;
    max-width: 100%;
    text-decoration: none;
    overflow: hidden;
}

.sj-clickable-banner img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.sj-clickable-banner:hover img {
    transform: scale(1.01);
    filter: brightness(0.97);
}

/* Desktop banner height */
@media screen and (min-width: 993px) {
    .sj-clickable-banner img {
        height: auto;
        max-height: 620px;
        object-fit: cover;
        object-position: center;
    }
}

/* Tablet */
@media screen and (max-width: 992px) {
    .sj-clickable-banner img {
        min-height: 300px;
        object-fit: cover;
        object-position: center;
    }
}

/* Mobile */
@media screen and (max-width: 768px) {
    .sj-banner-section {
        margin-top: 0;
    }

    .sj-clickable-banner img {
        width: 100%;
        min-height: 210px;
        object-fit: cover;
        object-position: center;
    }
}

/* Small mobile */
@media screen and (max-width: 480px) {
    .sj-clickable-banner img {
        min-height: 175px;
    }
}

/* =====================================================
   SERA JINIS PRODUCT CATEGORY SECTION
===================================================== */

.sj-category-section {
    width: 100%;
    padding: 62px 20px 70px;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfcff 100%
        );
}

.sj-category-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}

.sj-category-heading {
    margin-bottom: 34px;
    text-align: center;
}

.sj-category-heading span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    min-height: 44px;
    padding: 8px 28px;
    border-radius: 50px;
    background: linear-gradient(135deg, #e00018, #b90013);
    box-shadow: 0 8px 20px rgba(224, 0, 24, 0.2);
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.sj-category-heading h2 {
    margin: 18px 0 8px;
    color: #102958;
    font-size: 36px;
    line-height: 1.25;
    font-weight: 800;
}

.sj-category-heading p {
    margin: 0;
    color: #697386;
    font-size: 16px;
    line-height: 1.7;
}

.sj-category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.sj-category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 310px;
    padding: 15px 14px 20px;
    overflow: hidden;
    border: 1px solid #e8ebf1;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 7px 24px rgba(23, 47, 103, 0.08);
    color: #172f67;
    text-align: center;
    text-decoration: none;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.sj-category-card::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(224, 0, 24, 0.045);
    transition: transform 0.35s ease;
}

.sj-category-card:hover {
    border-color: rgba(224, 0, 24, 0.3);
    box-shadow: 0 16px 36px rgba(23, 47, 103, 0.14);
    color: #e00018;
    transform: translateY(-7px);
}

.sj-category-card:hover::before {
    transform: scale(1.25);
}

.sj-category-image {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 205px;
    margin-bottom: 16px;
    overflow: hidden;
    border-radius: 16px;
    background:
        linear-gradient(
            145deg,
            #f8f9fd,
            #ffffff
        );
}

.sj-category-image img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 10px;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.sj-category-card:hover .sj-category-image img {
    transform: scale(1.07);
}

.sj-category-card h3 {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    margin: auto 0 0;
    color: #1d2638;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 700;
    transition: color 0.3s ease;
}

.sj-category-card:hover h3 {
    color: #e00018;
}

.sj-category-footer {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.sj-view-all-categories {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 11px 27px;
    border: 2px solid #102958;
    border-radius: 9px;
    background: #ffffff;
    color: #102958;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.25s ease;
}

.sj-view-all-categories:hover {
    border-color: #e00018;
    background: #e00018;
    color: #ffffff;
    transform: translateY(-2px);
}

.sj-view-all-categories span {
    font-size: 21px;
    line-height: 1;
}

/* Medium desktop and laptop */

@media screen and (max-width: 1180px) {

    .sj-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }

    .sj-category-card {
        min-height: 330px;
    }

    .sj-category-image {
        height: 230px;
    }
}

/* Tablet */

@media screen and (max-width: 768px) {

    .sj-category-section {
        padding: 42px 15px 50px;
    }

    .sj-category-heading {
        margin-bottom: 26px;
    }

    .sj-category-heading span {
        min-width: 190px;
        min-height: 40px;
        padding: 7px 22px;
        font-size: 18px;
    }

    .sj-category-heading h2 {
        margin-top: 15px;
        font-size: 29px;
    }

    .sj-category-heading p {
        font-size: 14px;
    }

    .sj-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .sj-category-card {
        min-height: 270px;
        padding: 11px 10px 16px;
        border-radius: 17px;
    }

    .sj-category-image {
        height: 180px;
        margin-bottom: 12px;
        border-radius: 13px;
    }

    .sj-category-image img {
        padding: 7px;
    }

    .sj-category-card h3 {
        min-height: 52px;
        font-size: 15px;
        line-height: 1.4;
    }

    .sj-category-footer {
        margin-top: 25px;
    }
}

/* Small mobile */

@media screen and (max-width: 480px) {

    .sj-category-section {
        padding: 35px 10px 42px;
    }

    .sj-category-grid {
        gap: 10px;
    }

    .sj-category-card {
        min-height: 225px;
        padding: 9px 8px 13px;
        border-radius: 15px;
    }

    .sj-category-image {
        height: 145px;
        border-radius: 11px;
    }

    .sj-category-card h3 {
        min-height: 48px;
        font-size: 13px;
        line-height: 1.35;
    }

    .sj-view-all-categories {
        width: 100%;
        max-width: 280px;
    }
}





