@media (max-width: 1100px) {
    .main-header {
        gap: 16px;
    }

    .brand {
        min-width: 225px;
    }

    .main-nav {
        gap: 18px;
    }

    .hero-card {
        padding: 60px;
    }

    .hero-logo-wrap {
        width: 300px;
        height: 300px;
        right: 4%;
    }

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

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

    .feature-item:nth-child(3) {
        border-left: 0;
        border-top: 1px solid var(--okam-border);
    }

    .feature-item:nth-child(4) {
        border-top: 1px solid var(--okam-border);
    }
}

@media (max-width: 900px) {
    .desktop-search {
        display: none;
    }

    .mobile-search {
        display: flex;
        margin: 0 0 14px;
    }

    .main-nav {
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .hero-content {
        width: 65%;
    }

    .hero-logo-wrap {
        width: 260px;
        height: 260px;
        right: 2%;
    }

    .welcome-card {
        gap: 40px;
    }

    .welcome-content h2 {
        font-size: 35px;
    }

    .newsletter-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .newsletter-form {
        width: 100%;
        min-width: 0;
    }

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

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

    .top-strip {
        font-size: 11px;
    }

    .main-header {
        min-height: 76px;
    }

    .brand {
        min-width: 0;
    }

    .brand img {
        width: 55px;
        height: 55px;
    }

    .brand-text strong {
        font-size: 20px;
    }

    .brand-text small {
        font-size: 9px;
    }

    .header-actions {
        gap: 12px;
    }

    .header-action span {
        display: none;
    }

    .header-action i {
        font-size: 22px;
    }

    .cart-badge {
        right: -8px;
    }

    .main-nav {
        display: none;
    }

    .hero-section {
        padding: 18px 0 35px;
    }

    .hero-card {
        min-height: 0;
        padding: 42px 25px 30px;
        display: block;
        border-radius: 24px;
    }

    .hero-content {
        width: 100%;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .hero-logo-wrap {
        position: relative;
        transform: none;
        right: auto;
        top: auto;
        width: 220px;
        height: 220px;
        margin: 20px auto 0;
    }

    .hero-logo-glow {
        width: 200px;
        height: 200px;
    }

    .hero-trust {
        gap: 8px 15px;
        font-size: 10px;
    }

    .section-space {
        padding: 60px 0;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .section-heading h2 {
        font-size: 32px;
    }

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

    .category-card {
        min-height: 190px;
    }

    .welcome-card {
        grid-template-columns: 1fr;
    }

    .welcome-image {
        min-height: 300px;
    }

    .welcome-content h2 {
        font-size: 32px;
    }

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

    .feature-item,
    .feature-item:nth-child(3),
    .feature-item:nth-child(4) {
        border-left: 0;
        border-top: 1px solid var(--okam-border);
    }

    .feature-item:first-child {
        border-top: 0;
    }

    .newsletter-section {
        padding-bottom: 60px;
    }

    .newsletter-card {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .newsletter-card h2 {
        font-size: 27px;
    }

    .newsletter-form {
        display: block;
        background: transparent;
        padding: 0;
    }

    .newsletter-form input {
        border-radius: 999px;
        margin-bottom: 9px;
        padding: 13px 16px;
    }

    .newsletter-form button {
        width: 100%;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 5px;
    }

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

    .mobile-bottom-nav {
        position: fixed;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        bottom: 0;
        left: 0;
        right: 0;
        height: 64px;
        background: #fff;
        border-top: 1px solid var(--okam-border);
        z-index: 2000;
        box-shadow: 0 -8px 25px rgba(0,0,0,.08);
    }

    .mobile-bottom-nav a {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: #697180;
        font-size: 9px;
        font-weight: 700;
    }

    .mobile-bottom-nav a i {
        font-size: 19px;
        line-height: 1;
        margin-bottom: 4px;
    }

    .mobile-bottom-nav a:hover {
        color: var(--okam-blue);
    }

    .mobile-bottom-nav b {
        position: absolute;
        top: 7px;
        right: calc(50% - 18px);
        background: var(--okam-gold);
        color: #111;
        min-width: 16px;
        height: 16px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        font-size: 9px;
    }

    .placeholder-card {
        padding: 55px 20px;
    }

    .placeholder-card h1 {
        font-size: 34px;
    }
}

@media (max-width:1100px){
.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.shop-layout{grid-template-columns:210px 1fr}
}
@media (max-width:767px){
.shop-layout{display:block;padding:35px 0 60px}
.shop-sidebar{position:static;margin-bottom:25px}
.category-filter{display:grid;grid-template-columns:repeat(2,1fr)}
.shop-toolbar{align-items:stretch;flex-direction:column}
.shop-search{max-width:none}
.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.product-image-wrap{height:190px}
.product-card-body{padding:13px}
.product-card h3{font-size:16px}
.product-card p{display:none}
.product-price strong{font-size:15px}
.product-view-btn{width:34px;height:34px}
.product-detail{padding:35px 0 60px}
.product-detail-grid{grid-template-columns:1fr;gap:35px}
.product-gallery{position:static}
.product-main-image{height:360px}
.product-detail-info h1{font-size:35px}
.product-detail-price strong{font-size:26px}
.product-actions{align-items:stretch;flex-direction:column}
.quantity-box{justify-content:center;width:100%}
.quantity-box input{width:70px}
.product-actions .btn{width:100%}
}
@media (max-width:420px){
.product-image-wrap{height:160px}
.product-stock-badge{display:none}
.product-sale-badge{font-size:8px}
.product-card h3{font-size:14px}
.product-price strong{font-size:14px}
}

@media(max-width:900px){
.cart-layout{grid-template-columns:1fr}
.cart-summary{position:static}
}
@media(max-width:767px){
.cart-page,.wishlist-page{padding:30px 0 60px}
.cart-card-heading{padding:17px}
.cart-item{grid-template-columns:85px minmax(0,1fr);gap:13px;padding:16px}
.cart-item-image{height:85px}
.cart-item-info h3{font-size:16px}
.cart-item-total{grid-column:2;align-items:flex-start;flex-direction:row;justify-content:space-between;gap:10px}
.cart-quantity-form{flex-wrap:wrap}
.product-confidence{grid-template-columns:1fr}
.product-buy-form{flex-wrap:wrap}
.product-buy-form .quantity-box{width:100%;justify-content:center}
.product-cart-submit{width:100%;flex:auto}
}
@media(max-width:430px){
.wishlist-topline{align-items:flex-start;gap:10px;flex-direction:column}
}


/* =========================================================
   OKAM STORE MOBILE APP HERO
   Keep the desktop hero composition on phones.
   ========================================================= */
@media (max-width: 767px) {
    .hero-section {
        padding: 12px 0 28px;
        overflow: hidden;
    }

    .hero-section .container {
        padding-left: 10px;
        padding-right: 10px;
        max-width: 100%;
    }

    .hero-card {
        min-height: 360px;
        height: auto;
        padding: 34px 22px 30px;
        border-radius: 22px;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0;
    }

    .hero-content {
        width: 67%;
        flex: 0 0 67%;
        position: relative;
        z-index: 3;
    }

    .hero-kicker {
        font-size: 8px;
        letter-spacing: .9px;
        gap: 4px;
        white-space: nowrap;
    }

    .hero-content h1 {
        font-size: clamp(29px, 8.8vw, 42px);
        line-height: 1.05;
        letter-spacing: -1px;
        margin: 12px 0 13px;
    }

    .hero-content p {
        font-size: 11px;
        line-height: 1.5;
        max-width: 100%;
        margin-bottom: 16px;
    }

    .hero-buttons {
        gap: 7px;
        flex-wrap: nowrap;
    }

    .btn-primary-okam,
    .btn-outline-okam {
        padding: 9px 12px;
        font-size: 10px;
        white-space: nowrap;
    }

    .hero-trust {
        gap: 5px 9px;
        margin-top: 17px;
        font-size: 7.5px;
        line-height: 1.25;
    }

    .hero-logo-wrap {
        position: absolute;
        right: -10%;
        top: 50%;
        transform: translateY(-50%);
        width: 46%;
        height: auto;
        aspect-ratio: 1;
        margin: 0;
        z-index: 1;
    }

    .hero-logo-wrap img {
        width: 100%;
        height: 100%;
    }

    .hero-logo-glow {
        width: 82%;
        height: 82%;
    }

    .hero-card::after {
        width: 330px;
        height: 330px;
        right: -180px;
        top: 15px;
    }
}

@media (max-width: 390px) {
    .hero-card {
        min-height: 340px;
        padding: 30px 18px 26px;
    }

    .hero-content {
        width: 70%;
        flex-basis: 70%;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 10px;
    }

    .btn-primary-okam,
    .btn-outline-okam {
        padding: 8px 9px;
        font-size: 9px;
    }

    .hero-logo-wrap {
        right: -13%;
        width: 47%;
    }
}

/* =========================================================
   OKAM STORE - MOBILE POLISH
   Keep brand on one line, keep hero logo fully visible,
   and display collections two-per-row like products.
   ========================================================= */
@media (max-width: 767px) {
    .main-header {
        min-height: 64px;
        gap: 7px;
        flex-wrap: nowrap;
        overflow: visible;
    }

    .brand {
        display: flex;
        align-items: center;
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
        gap: 6px;
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    .brand img {
        flex: 0 0 auto;
        width: 42px;
        height: 42px;
        object-fit: contain;
    }

    .brand-text {
        min-width: 0;
        flex: 1 1 auto;
        white-space: nowrap;
        overflow: visible;
    }

    .brand-text strong {
        display: block;
        white-space: nowrap;
        font-size: clamp(14px, 4.6vw, 20px);
        line-height: 1;
        letter-spacing: -.3px;
    }

    .brand-text small {
        display: block;
        white-space: nowrap;
        font-size: 7px;
        line-height: 1.1;
        margin-top: 3px;
    }

    .header-actions {
        flex: 0 0 auto;
        gap: 7px;
        white-space: nowrap;
    }

    .header-action {
        width: 34px;
        height: 38px;
        display: grid !important;
        place-items: center;
    }

    .header-action i {
        font-size: 19px;
    }

    /* Hero remains side-by-side, but everything scales down together. */
    .hero-section {
        padding: 12px 0 28px;
    }

    .hero-section .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .hero-card {
        min-height: 300px;
        height: auto;
        padding: 26px 16px 22px;
        display: flex;
        flex-direction: row;
        align-items: center;
        position: relative;
        overflow: hidden;
        gap: 0;
    }

    .hero-content {
        width: 66%;
        flex: 0 0 66%;
        position: relative;
        z-index: 3;
        min-width: 0;
    }

    .hero-kicker {
        font-size: 7px;
        letter-spacing: .65px;
        white-space: nowrap;
    }

    .hero-content h1 {
        font-size: clamp(24px, 7.2vw, 34px);
        line-height: 1.04;
        letter-spacing: -.8px;
        margin: 9px 0 10px;
    }

    .hero-content p {
        font-size: 9px;
        line-height: 1.42;
        margin-bottom: 11px;
        max-width: 100%;
    }

    .hero-buttons {
        display: flex;
        gap: 5px;
        flex-wrap: nowrap;
    }

    .btn-primary-okam,
    .btn-outline-okam {
        padding: 7px 8px;
        font-size: 8px;
        white-space: nowrap;
        min-height: 30px;
    }

    .hero-trust {
        gap: 4px 7px;
        margin-top: 11px;
        font-size: 6.5px;
        line-height: 1.2;
    }

    .hero-logo-wrap {
        position: absolute;
        right: 1%;
        top: 50%;
        transform: translateY(-50%);
        width: 32%;
        height: auto;
        aspect-ratio: 1;
        margin: 0;
        z-index: 1;
    }

    .hero-logo-wrap img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

    .hero-logo-glow {
        width: 86%;
        height: 86%;
    }

    .hero-card::after {
        width: 220px;
        height: 220px;
        right: -125px;
        top: 40px;
    }

    /* Collections: two cards per row, just like product cards. */
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .category-card {
        min-height: 145px;
        padding: 15px 12px;
        border-radius: 15px;
        gap: 8px;
    }

    .category-card h3 {
        font-size: 14px;
        line-height: 1.15;
        margin-bottom: 4px;
    }

    .category-card p {
        font-size: 8.5px;
        line-height: 1.35;
        margin: 0;
    }

    .category-icon {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .category-card > .bi-arrow-up-right {
        font-size: 12px;
    }

    .section-heading h2 {
        font-size: 27px;
        line-height: 1.12;
    }

    .section-heading p {
        font-size: 11px;
    }
}

@media (max-width: 390px) {
    .brand img {
        width: 38px;
        height: 38px;
    }

    .brand-text strong {
        font-size: 14px;
    }

    .brand-text small {
        font-size: 6.5px;
    }

    .header-actions {
        gap: 4px;
    }

    .header-action {
        width: 31px;
    }

    .header-action i {
        font-size: 18px;
    }

    .hero-card {
        min-height: 275px;
        padding: 22px 13px 19px;
    }

    .hero-content {
        width: 67%;
        flex-basis: 67%;
    }

    .hero-content h1 {
        font-size: 23px;
    }

    .hero-content p {
        font-size: 8px;
    }

    .hero-logo-wrap {
        width: 30%;
        right: 2%;
    }

    .category-card {
        min-height: 135px;
        padding: 13px 10px;
    }

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

    .category-card p {
        font-size: 8px;
    }
}


/* =========================================================
   OKAM STORE - MOBILE FIT (NO CSS SCALING)
   Use compact fixed dimensions so every element fits naturally.
   ========================================================= */
@media (max-width: 767px) {
    .main-header {
        min-height: 58px;
        height: 58px;
        gap: 5px;
        padding-left: 8px;
        padding-right: 8px;
        flex-wrap: nowrap;
    }

    .brand {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
        gap: 5px;
        flex-wrap: nowrap;
        white-space: nowrap;
        overflow: hidden;
    }

    .brand img {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        object-fit: contain;
    }

    .brand-text {
        flex: 0 1 auto;
        min-width: 0;
        overflow: hidden;
    }

    .brand-text strong {
        font-size: 14px;
        line-height: 14px;
        letter-spacing: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: clip;
    }

    .brand-text small {
        font-size: 6px;
        line-height: 7px;
        margin-top: 2px;
        white-space: nowrap;
    }

    .header-actions {
        flex: 0 0 auto;
        gap: 4px;
        white-space: nowrap;
    }

    .header-action {
        width: 30px;
        height: 34px;
        flex: 0 0 30px;
    }

    .header-action i { font-size: 17px; }

    /* Hero: fixed compact sizes, no clamp/viewport scaling. */
    .hero-card {
        min-height: 268px;
        height: 268px;
        padding: 22px 13px;
        border-radius: 18px;
        overflow: hidden;
    }

    .hero-content {
        width: 69%;
        flex: 0 0 69%;
        min-width: 0;
    }

    .hero-kicker {
        font-size: 7px;
        line-height: 9px;
        letter-spacing: .5px;
        white-space: nowrap;
    }

    .hero-content h1 {
        font-size: 22px;
        line-height: 23px;
        letter-spacing: -.2px;
        margin: 8px 0 9px;
    }

    .hero-content p {
        font-size: 8px;
        line-height: 12px;
        margin-bottom: 10px;
    }

    .hero-buttons {
        gap: 5px;
        flex-wrap: nowrap;
    }

    .btn-primary-okam,
    .btn-outline-okam {
        padding: 7px 8px;
        min-height: 28px;
        font-size: 8px;
        line-height: 12px;
        white-space: nowrap;
    }

    .hero-trust {
        gap: 3px 6px;
        margin-top: 10px;
        font-size: 6px;
        line-height: 8px;
    }

    .hero-logo-wrap {
        width: 28%;
        height: 28%;
        max-width: 92px;
        max-height: 92px;
        right: 4%;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
    }

    .hero-logo-wrap img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .hero-logo-glow {
        width: 88%;
        height: 88%;
    }

    .hero-card::after {
        width: 190px;
        height: 190px;
        right: -115px;
        top: 39px;
    }

    /* Two compact collection cards per row. */
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .category-card {
        min-height: 132px;
        padding: 13px 10px;
        border-radius: 14px;
        gap: 7px;
    }

    .category-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .category-card h3 {
        font-size: 13px;
        line-height: 15px;
        margin-bottom: 3px;
    }

    .category-card p {
        font-size: 8px;
        line-height: 11px;
        margin: 0;
    }

    .category-card > .bi-arrow-up-right { font-size: 11px; }
}

@media (max-width: 390px) {
    .main-header { height: 54px; min-height: 54px; }
    .brand img { width: 31px; height: 31px; flex-basis: 31px; }
    .brand-text strong { font-size: 13px; line-height: 13px; }
    .brand-text small { font-size: 5.5px; }
    .header-action { width: 28px; flex-basis: 28px; height: 32px; }
    .header-action i { font-size: 16px; }

    .hero-card { min-height: 250px; height: 250px; padding: 20px 11px; }
    .hero-content { width: 70%; flex-basis: 70%; }
    .hero-content h1 { font-size: 20px; line-height: 21px; }
    .hero-content p { font-size: 7.5px; line-height: 11px; }
    .btn-primary-okam, .btn-outline-okam { padding: 6px 7px; font-size: 7.5px; }
    .hero-logo-wrap { width: 27%; height: 27%; right: 4%; }
    .category-card { min-height: 124px; padding: 11px 9px; }
    .category-card h3 { font-size: 12px; line-height: 14px; }
    .category-card p { font-size: 7.5px; line-height: 10px; }
}
