/* =========================================================
   URVA — PREMIUM RESPONSIVE MOBILE CSS
   theurva.com
   ========================================================= */


/* =========================================================
   GLOBAL RESPONSIVE FOUNDATION
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: hidden;
}

img,
video,
iframe {
    max-width: 100%;
}

img {
    height: auto;
}

button,
input,
textarea,
select {
    max-width: 100%;
}

a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(1180px, 92%);
    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   MOBILE — TABLETS + PHONES
   ========================================================= */

@media (max-width: 768px) {

    /* -----------------------------------------------------
       BODY
       ----------------------------------------------------- */

    body {
        font-size: 14px;
    }

    .container {
        width: calc(100% - 24px);
        max-width: none;
    }


    /* -----------------------------------------------------
       TOP BAR
       ----------------------------------------------------- */

    .topbar {
        font-size: 9px;
        line-height: 1.3;
    }

    .topbar-inner {
        min-height: 28px;
        height: auto;
        padding: 6px 0;
        gap: 8px;
        justify-content: center;
    }

    .topbar-inner > div:last-child {
        display: none;
    }


    /* -----------------------------------------------------
       MAIN HEADER
       ----------------------------------------------------- */

    .header {
        position: sticky;
        top: 0;
        z-index: 999;
        width: 100%;
        background: rgba(255,255,255,.97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .header-inner {
        width: 100%;
        min-height: 62px;
        height: auto;
        padding: 9px 0;
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
    }


    /* -----------------------------------------------------
       BRAND
       ----------------------------------------------------- */

    .brand {
        min-width: 0;
        flex-shrink: 1;
        display: flex;
        align-items: center;
        gap: 7px;
    }

    .brand > span {
        width: 35px;
        min-width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 19px;
    }

    .brand strong {
        font-size: 20px;
        line-height: 1;
        letter-spacing: 2px;
    }

    .brand small {
        display: block;
        font-size: 6px;
        line-height: 1;
        letter-spacing: 1px;
        margin-top: 3px;
    }


    /* -----------------------------------------------------
       HEADER ACTIONS
       ----------------------------------------------------- */

    .header-actions {
        margin-left: auto;
        flex-shrink: 0;

        display: flex;
        align-items: center;
        justify-content: flex-end;

        gap: 6px;

        font-size: 10px;
        white-space: nowrap;
    }

    .header-actions a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 34px;
        padding: 7px 8px;
        white-space: nowrap;
    }


    /* -----------------------------------------------------
       SEARCH
       ----------------------------------------------------- */

    .search-row {
        width: 100%;
        padding: 3px 0 10px;
    }

    .search {
        width: 100%;
        display: flex;
        min-width: 0;
    }

    .search input {
        width: 100%;
        min-width: 0;
        height: 44px;
        padding: 0 13px;
        font-size: 13px;
        border-radius: 9px 0 0 9px;
    }

    .search button {
        flex: 0 0 auto;
        height: 44px;
        padding: 0 15px;
        font-size: 12px;
        border-radius: 0 9px 9px 0;
    }


    /* -----------------------------------------------------
       HERO / HOME BANNER
       ----------------------------------------------------- */

    .hero {
        width: 100%;
        height: 430px;
        min-height: 430px;
        overflow: hidden;
    }

    .hero-copy {
        width: 100%;
        padding: 85px 15px 30px;
        text-align: center;
    }

    .hero-copy span {
        display: block;
        font-size: 9px;
        letter-spacing: 2.5px;
        line-height: 1.5;
    }

    .hero-copy h1 {
        font-size: clamp(38px, 12vw, 52px);
        line-height: 1;
        margin: 12px 0 14px;
        word-break: normal;
    }

    .hero-copy p {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
        font-size: 13px;
        line-height: 1.65;
    }

    .hero-copy .btn,
    .hero-copy a {
        margin-top: 18px;
    }


    /* -----------------------------------------------------
       SECTION SPACING
       ----------------------------------------------------- */

    .categories,
    .products-section {
        padding: 42px 0;
    }

    .section-head {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 20px;
    }

    .section-head h1,
    .section-head h2 {
        margin: 0;
        font-size: clamp(25px, 8vw, 32px);
        line-height: 1.15;
    }

    .section-head p {
        font-size: 12px;
        line-height: 1.6;
    }


    /* -----------------------------------------------------
       CATEGORY GRID
       ----------------------------------------------------- */

    .category-grid {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .category-card {
        width: 100%;
        min-width: 0;
        padding: 16px 12px;
        border-radius: 12px;
        overflow: hidden;
    }

    .category-card b {
        display: block;
        font-size: 15px;
        line-height: 1.3;
    }

    .category-card p {
        font-size: 11px;
        line-height: 1.5;
    }


    /* -----------------------------------------------------
       PRODUCT GRID
       ----------------------------------------------------- */

    .product-grid {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .product-card {
        width: 100%;
        min-width: 0;
        overflow: hidden;
        border-radius: 11px;
    }

    .product-image-wrap {
        position: relative;
        width: 100%;
        height: 185px;
        overflow: hidden;
    }

    .product-image-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }


    /* -----------------------------------------------------
       DISCOUNT BADGE
       ----------------------------------------------------- */

    .discount {
        top: 7px;
        left: 7px;
        z-index: 3;
        padding: 5px 7px;
        font-size: 8px;
        line-height: 1;
        border-radius: 5px;
    }


    /* -----------------------------------------------------
       PRODUCT INFORMATION
       ----------------------------------------------------- */

    .product-info {
        width: 100%;
        min-width: 0;
        padding: 11px;
    }

    .product-info h3 {
        margin: 0 0 7px;
        font-size: 14px;
        line-height: 1.35;

        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .price {
        font-size: 16px;
        line-height: 1.2;
    }

    .product-info del {
        font-size: 10px;
        margin-left: 4px;
    }


    /* -----------------------------------------------------
       PRODUCT BUTTONS
       ----------------------------------------------------- */

    .card-buttons {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        margin-top: 9px;
    }

    .card-buttons .btn {
        width: 100%;
        min-width: 0;
        min-height: 36px;
        padding: 8px 4px;
        font-size: 9px;
        line-height: 1.1;
        border-radius: 6px;
        white-space: nowrap;
    }


    /* -----------------------------------------------------
       FLOATING CART
       ----------------------------------------------------- */

    .floating-cart {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 10px;

        width: auto;
        min-width: 0;
        max-width: calc(100% - 20px);

        padding: 8px 10px;

        border-radius: 14px;

        z-index: 9999;

        display: flex;
        align-items: center;
        gap: 8px;

        box-shadow:
            0 8px 30px rgba(0,0,0,.16);
    }

    .floating-cart .float-icon {
        flex: 0 0 35px;
        width: 35px;
        height: 35px;
    }

    .floating-cart span,
    .floating-cart strong {
        min-width: 0;
    }


    /* -----------------------------------------------------
       PRODUCT DETAIL PAGE
       ----------------------------------------------------- */

    .product-page {
        width: 100%;
        display: block;
        padding: 30px 0 55px;
    }

    .gallery {
        width: 100%;
        min-width: 0;
    }

    .gallery-main {
        width: 100%;
        height: min(390px, 100vw);
        min-height: 280px;
        border-radius: 12px;
        overflow: hidden;
    }

    .gallery-main img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .thumbs {
        width: 100%;
        display: flex;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 8px 2px 7px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .thumbs::-webkit-scrollbar {
        display: none;
    }

    .thumbs img {
        flex: 0 0 62px;
        width: 62px;
        height: 62px;
        object-fit: cover;
        border-radius: 7px;
    }

    .product-detail {
        width: 100%;
        min-width: 0;
        margin-top: 25px;
    }

    .product-detail h1 {
        margin-bottom: 10px;
        font-size: clamp(28px, 8vw, 38px);
        line-height: 1.1;
        word-break: break-word;
    }

    .detail-price strong {
        font-size: 28px;
    }

    .lead {
        font-size: 13px;
        line-height: 1.7;
    }

    .detail-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 18px;
    }

    .detail-actions .btn {
        width: 100%;
        min-height: 44px;
    }


    /* -----------------------------------------------------
       PRODUCT DESCRIPTION
       ----------------------------------------------------- */

    .product-description {
        width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
        line-height: 1.7;
    }


    /* -----------------------------------------------------
       REVIEWS
       ----------------------------------------------------- */

    .reviews,
    .review-card {
        width: 100%;
        min-width: 0;
    }

    .review-card {
        padding: 13px;
        margin-bottom: 10px;
        border-radius: 9px;
    }

    .review-card p {
        font-size: 13px;
        line-height: 1.65;
        overflow-wrap: anywhere;
    }


    /* -----------------------------------------------------
       CART PAGE
       ----------------------------------------------------- */

    .cart-layout,
    .checkout-grid,
    .order-detail {
        width: 100%;
        display: block;
    }

    .cart-item {
        position: relative;
        width: 100%;
        min-width: 0;

        display: flex;
        align-items: flex-start;

        padding: 10px;
        gap: 10px;

        border-radius: 10px;
    }

    .cart-item img {
        flex: 0 0 65px;
        width: 65px;
        height: 65px;
        object-fit: cover;
        border-radius: 7px;
    }

    .cart-item > div {
        min-width: 0;
    }

    .cart-item h3 {
        margin: 0;
        padding-right: 22px;
        font-size: 14px;
        line-height: 1.35;
    }

    .cart-item > strong {
        display: none;
    }

    .remove-cart {
        position: absolute;
        right: 6px;
        top: 6px;
        z-index: 2;
    }

    .summary {
        width: 100%;
        margin-top: 18px;
        padding: 15px;
        border-radius: 11px;
    }


    /* -----------------------------------------------------
       QUANTITY CONTROL
       ----------------------------------------------------- */

    .quantity,
    .qty-control {
        max-width: 100%;
    }

    .quantity button,
    .qty-control button {
        min-width: 30px;
        min-height: 30px;
    }


    /* -----------------------------------------------------
       CHECKOUT / FORMS
       ----------------------------------------------------- */

    .checkout,
    .auth {
        width: 100%;
        padding: 30px 0 50px;
    }

    .form-grid {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .full-field {
        grid-column: auto;
    }

    input,
    textarea,
    select {
        width: 100%;
        max-width: 100%;
        min-height: 44px;
        font-size: 14px;
    }

    textarea {
        min-height: 100px;
        resize: vertical;
    }


    /* -----------------------------------------------------
       AUTH / LOGIN / REGISTER
       ----------------------------------------------------- */

    .auth {
        padding-left: 10px;
        padding-right: 10px;
    }

    .auth-card {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        padding: 24px 17px;
        border-radius: 13px;
    }

    .auth-card h1 {
        margin-bottom: 10px;
        font-size: 29px;
        line-height: 1.15;
    }

    .auth-card p {
        font-size: 12px;
        line-height: 1.6;
    }

    .auth-card .btn {
        width: 100%;
        min-height: 44px;
    }


    /* -----------------------------------------------------
       CUSTOMER ACCOUNT / ORDER HISTORY
       ----------------------------------------------------- */

    .account-grid,
    .profile-grid {
        display: block;
        width: 100%;
    }

    .account-card {
        width: 100%;
        margin-bottom: 15px;
        padding: 15px;
        border-radius: 11px;
        overflow: hidden;
    }

    .order-card {
        width: 100%;
        overflow: hidden;
        overflow-x: auto;
    }


    /* -----------------------------------------------------
       FOOTER
       ----------------------------------------------------- */

    .footer {
        padding: 42px 0 75px;
    }

    .footer-grid {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer p,
    .footer a {
        font-size: 12px;
        line-height: 1.7;
    }


    /* -----------------------------------------------------
       ADMIN PANEL
       ----------------------------------------------------- */

    .admin-shell {
        width: 100%;
        display: block;
    }

    .admin-nav {
        position: sticky;
        top: 0;
        z-index: 9999;

        width: 100%;

        display: flex;
        flex-direction: row;
        align-items: center;

        gap: 5px;

        overflow-x: auto;
        overflow-y: hidden;

        white-space: nowrap;

        padding: 9px 10px;

        scrollbar-width: none;
    }

    .admin-nav::-webkit-scrollbar {
        display: none;
    }

    .admin-nav .brand {
        flex: 0 0 auto;
        margin-right: 5px;
    }

    .admin-nav > a:not(.brand) {
        flex: 0 0 auto;
        padding: 8px 10px;
        font-size: 10px;
        border-radius: 6px;
    }

    .admin-main {
        width: 100%;
        min-width: 0;
        padding: 22px 11px 45px;
    }

    .admin-title {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .admin-title h1 {
        margin: 0;
        font-size: 28px;
        line-height: 1.15;
    }


    /* -----------------------------------------------------
       ADMIN STATISTICS
       ----------------------------------------------------- */

    .stats {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .stats > div {
        min-width: 0;
        padding: 13px;
        border-radius: 10px;
        overflow: hidden;
    }

    .stats b {
        display: block;
        font-size: 22px;
        line-height: 1.2;
    }

    .stats span {
        font-size: 10px;
    }


    /* -----------------------------------------------------
       ADMIN CARDS
       ----------------------------------------------------- */

    .admin-card {
        width: 100%;
        min-width: 0;
        padding: 13px;
        border-radius: 10px;
        overflow: hidden;
    }

    .table-wrap {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-wrap table {
        min-width: 700px;
        width: 100%;
    }


    /* -----------------------------------------------------
       ADMIN PRODUCT FORM
       ----------------------------------------------------- */

    .admin-card form {
        width: 100%;
    }

    .admin-card input,
    .admin-card textarea,
    .admin-card select {
        width: 100%;
    }

    .admin-card textarea {
        min-height: 120px;
    }

    .admin-card .btn {
        min-height: 42px;
    }


    /* -----------------------------------------------------
       FILE UPLOAD
       ----------------------------------------------------- */

    input[type="file"] {
        width: 100%;
        max-width: 100%;
        padding: 9px;
        font-size: 11px;
        overflow: hidden;
    }


    /* -----------------------------------------------------
       ALERT / SUCCESS / ERROR BOX
       ----------------------------------------------------- */

    .alert,
    .success,
    .error,
    .message {
        width: 100%;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
        font-size: 12px;
        line-height: 1.55;
    }


    /* -----------------------------------------------------
       MODALS
       ----------------------------------------------------- */

    .modal {
        padding: 10px;
    }

    .modal-content {
        width: 100%;
        max-width: 500px;
        max-height: 90vh;
        overflow-y: auto;
        border-radius: 12px;
        padding: 18px;
    }
}


/* =========================================================
   SMALL PHONES
   481px → 420px
   ========================================================= */

@media (max-width: 480px) {

    .container {
        width: calc(100% - 20px);
    }

    .header-inner {
        padding: 8px 0;
    }

    .brand > span {
        width: 33px;
        min-width: 33px;
        height: 33px;
        font-size: 17px;
    }

    .brand strong {
        font-size: 18px;
        letter-spacing: 1.7px;
    }

    .header-actions {
        gap: 3px;
        font-size: 9px;
    }

    .header-actions a {
        padding: 6px;
    }

    .search input,
    .search button {
        height: 42px;
    }


    /* HERO */

    .hero {
        height: 390px;
        min-height: 390px;
    }

    .hero-copy {
        padding-top: 72px;
    }

    .hero-copy h1 {
        font-size: 38px;
    }

    .hero-copy p {
        font-size: 12px;
        max-width: 320px;
    }


    /* PRODUCTS */

    .product-grid {
        gap: 8px;
    }

    .product-image-wrap {
        height: 170px;
    }

    .product-info {
        padding: 9px;
    }

    .product-info h3 {
        font-size: 13px;
    }

    .price {
        font-size: 15px;
    }

    .product-info del {
        font-size: 9px;
    }

    .card-buttons {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .card-buttons .btn {
        min-height: 34px;
        padding: 7px 3px;
        font-size: 9px;
    }


    /* CATEGORY */

    .category-card {
        padding: 14px 10px;
    }

    .category-card b {
        font-size: 14px;
    }


    /* PRODUCT DETAIL */

    .gallery-main {
        height: 320px;
        min-height: 280px;
    }

    .product-detail h1 {
        font-size: 30px;
    }

    .detail-price strong {
        font-size: 26px;
    }

    .detail-actions {
        grid-template-columns: 1fr;
    }


    /* FLOATING CART */

    .floating-cart {
        left: 7px;
        right: 7px;
        bottom: 7px;
        max-width: calc(100% - 14px);
        padding: 7px 9px;
    }

    .floating-cart .float-icon {
        width: 33px;
        height: 33px;
        flex-basis: 33px;
    }


    /* ADMIN */

    .admin-main {
        padding-left: 9px;
        padding-right: 9px;
    }

    .stats {
        gap: 7px;
    }

    .stats > div {
        padding: 11px;
    }

    .stats b {
        font-size: 20px;
    }
}


/* =========================================================
   VERY SMALL PHONES
   380px AND BELOW
   ========================================================= */

@media (max-width: 380px) {

    .container {
        width: calc(100% - 16px);
    }

    .brand strong {
        font-size: 17px;
    }

    .brand small {
        display: none;
    }

    .header-actions {
        font-size: 8px;
    }

    .header-actions a {
        padding: 5px;
    }


    .hero {
        height: 365px;
        min-height: 365px;
    }

    .hero-copy {
        padding-top: 65px;
    }

    .hero-copy h1 {
        font-size: 34px;
    }


    .product-image-wrap {
        height: 150px;
    }

    .product-info h3 {
        font-size: 12px;
    }

    .price {
        font-size: 14px;
    }

    .discount {
        font-size: 7px;
        padding: 4px 5px;
    }


    .category-grid {
        gap: 7px;
    }

    .category-card {
        padding: 12px 8px;
    }

    .category-card b {
        font-size: 13px;
    }


    .gallery-main {
        height: 290px;
    }


    .auth-card {
        padding: 20px 13px;
    }

    .auth-card h1 {
        font-size: 26px;
    }
}


/* =========================================================
   LANDSCAPE MOBILE
   ========================================================= */

@media (max-width: 768px) and (orientation: landscape) {

    .hero {
        height: 330px;
        min-height: 330px;
    }

    .hero-copy {
        padding-top: 45px;
    }

    .hero-copy h1 {
        font-size: 38px;
    }

    .gallery-main {
        height: 300px;
    }
}


/* =========================================================
   TOUCH DEVICE IMPROVEMENTS
   ========================================================= */

@media (hover: none) and (pointer: coarse) {

    button,
    .btn,
    a {
        touch-action: manipulation;
    }

    .btn,
    button {
        min-height: 40px;
    }

    input,
    select,
    textarea {
        font-size: 16px;
    }

    .product-card:hover {
        transform: none;
    }
}


/* =========================================================
   PREVENT LONG TEXT FROM BREAKING MOBILE LAYOUT
   ========================================================= */

@media (max-width: 768px) {

    h1,
    h2,
    h3,
    h4,
    p,
    span,
    strong,
    a,
    td,
    th {
        overflow-wrap: anywhere;
    }

    .price,
    .discount,
    .btn,
    .header-actions a {
        overflow-wrap: normal;
        word-break: normal;
    }
}