:root {
    --site-surface: #fff;
    --site-page: #f5f5f5;
    --site-ink: #171717;
    --site-muted: #666;
    --site-border: rgba(23, 23, 23, 0.08);
    --site-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    --site-shadow-hover: 0 16px 38px rgba(0, 0, 0, 0.12);
    --site-radius: 18px;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--site-ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
}

.header-section {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.header-main {
    border-radius: 0 0 16px 16px;
}

.main-header-logo {
    display: block;
    border-radius: 8px;
}

.search-section {
    border: 1px solid transparent;
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-section:focus-within {
    border-color: #EE1D23;
    box-shadow: 0 0 0 3px rgba(238, 29, 35, 0.12);
}

.navbar-section .nav-link {
    border-radius: 8px;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.navbar-section .nav-link:not(.deals-btn):hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.main-section {
    padding-right: clamp(0.75rem, 2.5vw, 2.5rem);
    padding-left: clamp(0.75rem, 2.5vw, 2.5rem);
}

.main-section > .row:first-child {
    row-gap: 1rem;
}

.main-section > .row:first-child picture {
    display: block;
    overflow: hidden;
    border-radius: var(--site-radius);
    background: var(--site-surface);
    box-shadow: var(--site-shadow);
}

.main-section > .row:first-child picture img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: inherit;
    transition: transform 0.35s ease;
}

.main-section > .row:first-child a:hover picture img {
    transform: scale(1.025);
}

.main-section .top-carousel {
    padding: 1rem !important;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    box-shadow: var(--site-shadow);
}

.main-section .top-carousel .owl-item > .row {
    min-height: 76px;
    padding: 0.75rem;
    border-radius: 13px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.main-section .top-carousel .owl-item > .row:hover {
    background: var(--site-page);
    transform: translateY(-2px);
}

.main-section .top-carousel .owl-item p:first-child {
    line-height: 1.35;
}

.main-section .top-carousel2 {
    padding: 1rem 0.5rem 0;
}

.category-card {
    height: 100%;
    padding: 1rem 0.5rem !important;
}

.trip-photo {
    width: clamp(92px, 10vw, 132px);
    height: clamp(92px, 10vw, 132px);
    border: 1px solid var(--site-border);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.category-name {
    min-height: 2.5em;
    margin-top: 0.9rem;
    font-size: clamp(0.8rem, 1.1vw, 1rem);
    line-height: 1.35;
    transform: none;
}

.category-card:hover .category-name {
    transform: translateY(-2px);
}

.main-section h2 {
    position: relative;
    margin-bottom: 0.8rem !important;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    letter-spacing: -0.025em;
}

.main-section h2 + a,
.main-section .hvr-icon-wobble-horizontal {
    font-weight: 600 !important;
}

.main-section .banner-hover {
    border-radius: var(--site-radius);
    box-shadow: var(--site-shadow);
}

.main-section .banner-hover img {
    height: auto;
    border-radius: inherit;
}

.main-section .item > .col-12.bg-white {
    height: 100%;
    padding: 1rem !important;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.045);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.main-section .item > .col-12.bg-white:hover {
    transform: translateY(-4px);
    box-shadow: var(--site-shadow-hover);
}

.product-image-wrapper {
    overflow: hidden;
    border-radius: 14px;
    background: #fafafa;
}

.product-image-wrapper > img {
    aspect-ratio: 1 / 0.88;
    object-fit: contain;
}

.product-image-wrapper .product-icon {
    width: 42px;
    height: 42px;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.16);
}

.product-image-wrapper:hover > img {
    transform: scale(1.035);
}

.main-section .item > .col-12.bg-white > a h6 {
    min-height: 2.8em;
    line-height: 1.4;
}

.main-section .item > .col-12.bg-white h5 {
    line-height: 1.45;
}

.brand-carousel {
    border: 1px solid var(--site-border);
    box-shadow: var(--site-shadow);
}

.brand-carousel img {
    max-height: 78px;
    object-fit: contain;
}

.breadcrum-section {
    padding-right: clamp(0.75rem, 2.5vw, 2.5rem);
    padding-left: clamp(0.75rem, 2.5vw, 2.5rem);
}

.breadcrum-section > .row:first-child {
    margin-bottom: 1.25rem !important;
}

.breadcrum-section .breadcrumb {
    align-items: center;
    padding: 0.75rem 1rem !important;
    border: 1px solid var(--site-border);
    border-radius: 12px;
    background: var(--site-surface);
}

.breadcrum-section .card,
.breadcrum-section .cart-card,
.breadcrum-section .summary-card {
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    box-shadow: var(--site-shadow);
}

.breadcrum-section .card {
    overflow: hidden;
}

.breadcrum-section .card h3,
.breadcrum-section .card h4,
.breadcrum-section .card h5 {
    letter-spacing: -0.02em;
}

.breadcrum-section .hero {
    overflow: hidden;
    border-radius: 0 0 var(--site-radius) var(--site-radius);
}

.shop-card-body {
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
}

.shop-filters {
    border-radius: var(--site-radius);
}

.product-image-container {
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
}

.product-details,
.product-image-container + .bg-white {
    border-radius: var(--site-radius);
}

.breadcrum-section .form-control,
.breadcrum-section .form-select,
.breadcrum-section textarea,
.modal .form-control,
.modal .form-select,
.modal textarea {
    min-height: 46px;
    border: 1px solid rgba(23, 23, 23, 0.14);
    border-radius: 11px;
    background-color: var(--site-surface);
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.breadcrum-section textarea,
.modal textarea {
    min-height: 120px;
}

.breadcrum-section .form-control:focus,
.breadcrum-section .form-select:focus,
.breadcrum-section textarea:focus,
.modal .form-control:focus,
.modal .form-select:focus,
.modal textarea:focus {
    border-color: #EE1D23;
    box-shadow: 0 0 0 3px rgba(238, 29, 35, 0.1);
}

.breadcrum-section .btn,
.modal .btn {
    border-radius: 10px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.breadcrum-section .btn:hover,
.modal .btn:hover {
    transform: translateY(-1px);
}

.breadcrum-section .table-responsive,
.breadcrum-section .table {
    border-radius: 12px;
}

.breadcrum-section .table {
    margin-bottom: 0;
}

.breadcrum-section .table thead th {
    padding: 0.9rem 0.75rem;
    border-bottom-width: 1px;
    background: #f7f7f7;
    color: var(--site-ink);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.breadcrum-section .table tbody td {
    padding: 0.85rem 0.75rem;
    border-color: var(--site-border);
}

.pagination {
    flex-wrap: wrap;
    gap: 0.35rem;
}

.pagination .page-link {
    min-width: 38px;
    border-radius: 9px;
}

.footer-section {
    border-radius: var(--site-radius) var(--site-radius) 0 0;
}

.footer-section .social-icon {
    width: 40px;
    height: 40px;
}

.footer-section a:not(.social-icon):hover {
    color: #fff !important;
    transform: translateX(2px);
}

.sticky-footer {
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .main-header-logo {
        width: clamp(110px, 15vw, 132px);
    }

    .main-section > .row:first-child > div:first-child {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .main-section > .row:first-child > div:nth-child(2),
    .main-section > .row:first-child > div:nth-child(3) {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .main-section > .row:first-child > div:first-child picture img {
        aspect-ratio: 2.2 / 1;
        object-fit: cover;
    }

    .main-section > .row:first-child > div:nth-child(2) picture img,
    .main-section > .row:first-child > div:nth-child(3) picture img {
        aspect-ratio: 1.15 / 1;
        object-fit: cover;
    }

    #shop-products-list-products-section > .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .main-section .item > .col-12.bg-white {
        padding: 0.8rem !important;
    }
}

@media (max-width: 767.98px) {
    .header-section {
        padding-right: 0.75rem !important;
        padding-left: 0.75rem !important;
    }

    .main-section {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .main-section > .row:first-child > div:nth-child(2),
    .main-section > .row:first-child > div:nth-child(3) {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0.35rem;
        padding-left: 0.35rem;
    }

    .main-section > .row:first-child > div:first-child {
        padding-right: 0.35rem;
        padding-left: 0.35rem;
    }

    .main-section > .row:first-child > div picture img {
        aspect-ratio: auto;
        object-fit: contain;
    }

    .main-section > .row:first-child > div:nth-child(3) .row {
        margin-right: -0.35rem;
        margin-left: -0.35rem;
    }

    .main-section > .row:first-child > div:nth-child(3) .row > div {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0 0 1rem;
    }

    .main-section .top-carousel {
        padding: 0.55rem !important;
    }

    .main-section .top-carousel .owl-item > .row {
        min-height: 66px;
        padding: 0.55rem 0.3rem;
    }

    .main-section .top-carousel .font-16 {
        font-size: 0.8rem;
    }

    .main-section .top-carousel .font-13 {
        font-size: 0.68rem;
    }

    .category-card {
        padding: 0.65rem 0.25rem !important;
    }

    .trip-photo {
        width: 86px;
        height: 86px;
    }

    .category-name {
        min-height: 2.6em;
        margin-top: 0.55rem;
        font-size: 0.75rem;
    }

    .main-section .item > .col-12.bg-white {
        padding: 0.65rem !important;
        border-radius: 14px;
    }

    .main-section .item > .col-12.bg-white > a h6 {
        min-height: 3.9em;
        font-size: 0.78rem;
    }

    .main-section .item > .col-12.bg-white h5 {
        font-size: 0.8rem;
    }

    .product-image-wrapper .product-icon {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }

    #shop-products-list-products-section > .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
        padding-right: 0.35rem;
        padding-left: 0.35rem;
    }

    .breadcrum-section {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .breadcrum-section .card-body {
        padding: 1rem !important;
    }

    .breadcrum-section .hero {
        padding: 2.5rem 0.75rem !important;
        border-radius: 0 0 14px 14px;
    }

    .breadcrum-section .hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .breadcrum-section .hero p {
        font-size: 0.95rem;
    }

    .breadcrum-section .table thead th,
    .breadcrum-section .table tbody td {
        padding: 0.65rem 0.55rem;
    }

    .breadcrum-section .form-control,
    .breadcrum-section .form-select {
        min-height: 44px;
    }

    .footer-section {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
        padding-bottom: 5.5rem !important;
    }

    .sticky-link {
        min-width: 58px;
    }

    .floating-actions {
        right: 12px;
        bottom: 88px;
    }

    .floating-button {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 767.98px) {
    .cart-page .table-responsive {
        overflow-x: visible;
    }

    .cart-page .table {
        display: block;
        width: 100%;
    }

    .cart-page .table thead {
        display: none;
    }

    .cart-page .table tbody {
        display: grid;
        gap: 0.75rem;
    }

    .cart-page .table tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem 0.8rem;
        padding: 0.85rem;
        border: 1px solid var(--site-border);
        border-radius: 14px;
        background: var(--site-surface);
    }

    .cart-page .table tbody td {
        min-width: 0;
        padding: 0.2rem !important;
        border: 0;
        overflow-wrap: anywhere;
    }

    .cart-page .table tbody td:first-child {
        grid-column: 1 / -1;
    }

    .cart-page .table tbody td:first-child .d-flex {
        align-items: flex-start;
        min-width: 0;
    }

    .cart-page .table tbody td:first-child .d-flex > div {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .cart-page .table tbody td:first-child h6 {
        line-height: 1.4;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .cart-page .table tbody td:first-child .badge {
        display: inline-block;
        max-width: 100%;
        margin-top: 0.25rem;
        white-space: normal;
        text-align: left;
    }

    .cart-page .table tbody td:nth-child(2)::before,
    .cart-page .table tbody td:nth-child(3)::before,
    .cart-page .table tbody td:nth-child(4)::before {
        margin-bottom: 0.15rem;
        color: var(--site-muted);
        font-size: 0.72rem;
        font-weight: 600;
    }

    .cart-page .table tbody td:nth-child(2)::before {
        content: "Price";
    }

    .cart-page .table tbody td:nth-child(3)::before {
        content: "Quantity";
    }

    .cart-page .table tbody td:nth-child(4)::before {
        content: "Total";
    }

    .cart-page .table tbody td:nth-child(2),
    .cart-page .table tbody td:nth-child(3),
    .cart-page .table tbody td:nth-child(4) {
        display: flex;
        flex-direction: column;
        justify-content: center;
        line-height: 1.4;
    }

    .cart-page .table tbody td:nth-child(3) .qty-input {
        width: 76px;
        max-width: 100%;
    }

    .cart-page .table tbody td:nth-child(5) {
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .cart-page .table tbody td[colspan] {
        grid-column: 1 / -1;
        text-align: center;
    }

    .scroll-top-btn {
        right: calc(12px + env(safe-area-inset-right, 0px));
        bottom: calc(144px + env(safe-area-inset-bottom, 0px));
        z-index: 1052;
    }

    .floating-actions {
        right: calc(12px + env(safe-area-inset-right, 0px));
        bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
