:root {
    --porto-primary: #1c5fa8;
    --porto-secondary: #3073bc;
    --porto-tertiary: #0f4f97;
    --porto-quaternary: #383f48;
    --porto-dark: #212529;
    --porto-light: #ffffff;
    --porto-gray-100: #f4f4f4;
    --porto-gray-300: #e5e7eb;
    --porto-heading: #0f172a;
    --porto-body: #334155;
    --porto-accent: #f7ca0d;
    --porto-accent-dark: #ddb400;
}

body {
    font-family: "Poppins", sans-serif;
    background: #f7f7f8;
    color: var(--porto-body);
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: .1px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--porto-heading);
    font-weight: 700;
    letter-spacing: -.2px;
}

h1 { font-size: clamp(2rem, 3.1vw, 3rem); line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.22; }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.3; }

.lead {
    font-size: 1.02rem;
    line-height: 1.75;
}

.notice-top-bar {
    background: var(--porto-quaternary);
    color: #dbe3ee;
}

.topbar {
    background: #ffffff;
    border-bottom: 1px solid var(--porto-gray-300);
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--porto-tertiary), var(--porto-primary));
    color: #fff;
}

.brand-title {
    color: #0f172a;
    line-height: 1;
}

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

.header-contact-item {
    border: 1px solid var(--porto-gray-300);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    gap: 10px;
    align-items: center;
    background: #fff;
}

.header-contact-item i {
    color: var(--porto-primary);
    font-size: 1.1rem;
}

.header-contact-item small {
    color: #64748b;
    display: block;
    line-height: 1;
}

.header-contact-item strong {
    color: #0f172a;
    font-size: .88rem;
}

.main-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: linear-gradient(90deg, var(--porto-tertiary), var(--porto-primary));
    box-shadow: 0 10px 24px rgba(8, 75, 148, 0.24);
}

.main-nav .nav-link {
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .15px;
    text-transform: uppercase;
}

.navbar-brand span {
    color: #d9e8fb;
}

.nav-search .form-control {
    min-width: 260px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.nav-search .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.hero-section {
    background: radial-gradient(circle at 20% 10%, var(--porto-secondary), var(--porto-tertiary) 68%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, .08), transparent 35%);
    pointer-events: none;
}

.hero-panel {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 12px;
}

.hero-home {
    min-height: 520px;
    display: flex;
    align-items: center;
}

.hero-service-item {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    padding: .55rem .7rem;
}

.hero-service-item i {
    color: #ffdd8d;
    margin-right: .4rem;
}

.home-service-strip {
    margin-top: -36px;
    position: relative;
    z-index: 3;
}

.service-strip-card {
    background: #fff;
    border: 1px solid var(--porto-gray-300);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    min-height: 100%;
}

.service-strip-card i {
    font-size: 1.2rem;
    color: var(--porto-primary);
    margin-top: .2rem;
}

.service-strip-card h6 {
    margin: 0 0 .2rem;
    font-size: .95rem;
}

.service-strip-card p {
    margin: 0;
    font-size: .84rem;
    color: #64748b;
}

.btn-warning,
.btn-warning:focus {
    background: var(--porto-accent);
    border-color: var(--porto-accent);
    color: #1f2937;
}

.btn-warning:hover {
    background: var(--porto-accent-dark);
    border-color: var(--porto-accent-dark);
    color: #1f2937;
}

.btn-dark,
.btn-dark:focus {
    background: var(--porto-quaternary);
    border-color: var(--porto-quaternary);
}

.btn-dark:hover {
    background: #2b3138;
    border-color: #2b3138;
}

.text-warning {
    color: var(--porto-accent-dark) !important;
}

.cat-card {
    background: #fff;
    border: 1px solid var(--porto-gray-300);
    border-radius: 10px;
    transition: all .2s ease;
    color: #111827;
    min-height: 86px;
}

.cat-card:hover {
    border-color: var(--porto-primary);
    box-shadow: 0 6px 18px rgba(28, 95, 168, 0.14);
    transform: translateY(-2px);
}

.cat-card-media {
    min-height: 100px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--porto-gray-300);
}

.cat-media-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    height: 100%;
}

.cat-media-thumb {
    width: 62px;
    height: 62px;
    border-radius: 12px;
    overflow: hidden;
    background: #eef2f7;
    border: 1px solid #d8e1ec;
    flex-shrink: 0;
}

.cat-media-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--porto-tertiary), var(--porto-primary));
    border-color: transparent;
}

.cat-media-content {
    color: #111827;
    line-height: 1.25;
}

.cat-media-thumb-placeholder i {
    font-size: 1.15rem;
    color: #ffdc82;
}

.product-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    transition: .2s ease;
}

.product-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.filter-box {
    background: #fff;
    border: 1px solid var(--porto-gray-300);
    border-radius: 10px;
    padding: 14px;
}

.porto-sort-select {
    width: 230px;
    max-width: 230px;
    flex: 0 0 auto;
    border: 1px solid #cdd5df;
    border-radius: 4px;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .2px;
    text-transform: uppercase;
    color: #334155;
    background-color: #fff;
    background-image: linear-gradient(45deg, transparent 50%, #64748b 50%), linear-gradient(135deg, #64748b 50%, transparent 50%);
    background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 11px) calc(50% - 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 34px;
}

.porto-sort-select:focus {
    border-color: var(--porto-primary);
    box-shadow: 0 0 0 .18rem rgba(28, 95, 168, .14);
}

.product-card .thumb {
    background: #f3f4f6;
    border-radius: 8px;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card .thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.shop-thumb-wrap {
    position: relative;
}

.shop-thumb-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 75, 148, .62);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity .2s ease;
}

.product-card:hover .shop-thumb-hover {
    opacity: 1;
}

.shop-brand-badge {
    font-size: .67rem;
    letter-spacing: .2px;
    font-weight: 700;
}

.shop-product-title {
    min-height: 38px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-product-desc {
    min-height: 34px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: .75rem;
}

.shop-product-price {
    font-size: 1.05rem;
    color: #0f172a;
}

.shop-meta-list {
    border-top: 1px dashed #dbe3ee;
    padding-top: .45rem;
}

.shop-meta-item {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: .68rem;
    line-height: 1.28;
    color: #64748b;
}

.shop-meta-item span {
    white-space: nowrap;
}

.shop-meta-item strong {
    color: #1e66d0;
    font-weight: 600;
    text-align: right;
}

.product-card .btn-warning,
.product-card .btn-warning:focus {
    background: #2b6cb0;
    border-color: #2b6cb0;
    color: #fff;
}

.product-card .btn-warning:hover {
    background: #1f5a99;
    border-color: #1f5a99;
    color: #fff;
}

.product-gallery {
    background: #fff;
    border: 1px solid var(--porto-gray-300);
}

.product-gallery img {
    aspect-ratio: 1/1;
    object-fit: contain;
    background: #f8fafc;
}

.footer {
    background: var(--porto-quaternary);
    color: #d1d5db;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
}

.footer-sep {
    border-color: rgba(255, 255, 255, 0.12);
}

.whatsapp-float {
    position: fixed;
    left: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 1080;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.26);
    transition: transform .2s ease, box-shadow .2s ease;
}

.whatsapp-float img {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: block;
    object-fit: cover;
}

.whatsapp-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.28);
}

.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid var(--porto-accent) !important;
    background-color: var(--porto-accent) !important;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.22);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: all .2s ease;
    z-index: 1080;
}

.back-to-top i {
    color: #fff !important;
    font-size: .95rem;
}

.back-to-top:hover {
    background-color: var(--porto-accent-dark) !important;
    border-color: var(--porto-accent-dark) !important;
    color: #fff !important;
}

.back-to-top:focus,
.back-to-top:active {
    background-color: var(--porto-accent) !important;
    border-color: var(--porto-accent) !important;
    color: #fff !important;
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.section-5 {
    background: #fff;
    border-bottom: 1px solid var(--porto-gray-300);
    padding-top: .9rem !important;
    padding-bottom: .9rem !important;
}

.section-5 .breadcrumb {
    margin: 0;
}

.section-5 .breadcrumb-item,
.section-5 .breadcrumb-item a {
    color: #6b7280;
    text-decoration: none;
}

.section-5 .breadcrumb-item.active {
    color: #111827;
}

.section-9 .card,
.account-page .card {
    border: 1px solid var(--porto-gray-300);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.section-9 .sub-title h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--porto-tertiary);
}

.section-11 {
    padding: 1.4rem 0 3.4rem;
}

.section-11 .card-header {
    background: #f8fbff;
    border-bottom: 1px solid var(--porto-gray-300);
}

#account-panel {
    background: #fff;
    border: 1px solid var(--porto-gray-300);
    border-radius: 10px;
    padding: .45rem;
}

#account-panel .nav-link {
    color: #374151;
    border-radius: 8px;
    font-size: .92rem;
    padding: .6rem .8rem;
}

#account-panel .nav-link.active,
#account-panel .nav-link:hover {
    background: rgba(28, 95, 168, .11);
    color: var(--porto-tertiary);
}

.account-page .account-content-card {
    border: 1px solid var(--porto-gray-300);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.account-page .account-content-card .card-header {
    background: #f8fbff;
    border-bottom: 1px solid var(--porto-gray-300);
    padding: .85rem 1rem;
}

.account-page .account-content-card .card-body {
    padding: 1rem;
}

.account-page .account-actions .btn {
    border-radius: 8px;
    font-weight: 600;
}

.account-page .table {
    margin-bottom: 0;
}

.account-page .table th {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .18px;
    color: #64748b;
    border-bottom-width: 1px;
}

.account-page .table td {
    vertical-align: middle;
}

.account-profile-card {
    border: 1px solid var(--porto-gray-300);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    padding: 1rem;
}

.account-profile-card .account-avatar {
    width: 108px;
    height: 108px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.account-profile-card .account-role {
    color: #64748b;
    font-size: .83rem;
}

.checkout-form label {
    font-size: .88rem;
    font-weight: 600;
    color: #334155;
}

.checkout-form .form-control,
.checkout-form .form-select {
    border-radius: 10px;
    padding: .6rem .75rem;
}

.btn {
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: .12px;
}

.btn-sm {
    border-radius: 7px;
}

.section-9,
.section-10 {
    padding-top: 1.2rem;
    padding-bottom: 2.8rem;
}

.cart-summery .card-body {
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    border-radius: 10px;
}

#cart .cart-item-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 4px;
    flex-shrink: 0;
}

#cart .cart-item-title {
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.3;
    color: #1f2937;
}

#cart .cart-item-link {
    color: #1f2937;
    text-decoration: none;
}

#cart .cart-item-link:hover {
    color: var(--porto-primary);
    text-decoration: underline;
}

#cart .cart-item-desc {
    margin-top: 4px;
    font-size: .78rem;
    font-weight: 400;
    color: #64748b;
    line-height: 1.35;
}

#cart.porto-cart-table th,
#cart.porto-cart-table td {
    vertical-align: middle;
}

#cart.porto-cart-table .cart-col-item {
    width: 46%;
}

#cart.porto-cart-table .cart-col-price,
#cart.porto-cart-table .cart-col-total,
#cart.porto-cart-table .cart-col-remove {
    white-space: nowrap;
}

#cart .cart-item-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

#cart .cart-thumb-wrap {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.shipping-option-card, .payment-option-card {
    border: 1px solid var(--porto-gray-300);
    border-radius: 10px;
    padding: 1rem;
    background: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
}

.shipping-option-card:hover, .payment-option-card:hover {
    border-color: var(--porto-secondary);
    box-shadow: 0 6px 16px rgba(8, 75, 148, 0.12);
}

.shipping-option-card.selected, .payment-option-card.selected {
    border-color: var(--porto-primary);
    background: #f3f8ff;
    box-shadow: 0 4px 12px rgba(8, 75, 148, 0.12);
}

.option-price {
    color: #137a3f;
}

.table > :not(caption) > * > * {
    border-bottom-color: var(--porto-gray-300);
}

.table thead th {
    color: #1f2937;
    font-weight: 700;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--porto-secondary);
    box-shadow: 0 0 0 0.2rem rgba(48, 115, 188, 0.2);
}

.pagination .page-link {
    color: var(--porto-primary);
}

.pagination .page-item.active .page-link {
    background: var(--porto-primary);
    border-color: var(--porto-primary);
    color: #fff;
}

.pagination .page-item.active .page-link:hover,
.pagination .page-item.active .page-link:focus {
    background: var(--porto-primary);
    border-color: var(--porto-primary);
    color: #fff;
}

@media (max-width: 991.98px) {
    .header-contact-grid {
        grid-template-columns: 1fr;
    }

    .nav-search {
        margin: .7rem 0;
    }

    .nav-search .form-control {
        min-width: 0;
        width: 100%;
    }

    .hero-section .display-5 {
        font-size: 1.95rem;
    }

    .hero-home {
        min-height: 0;
    }

    .home-service-strip {
        margin-top: 0;
        padding-top: 1rem;
    }

    .section-11 .col-md-3,
    .section-11 .col-md-9,
    .section-9 .col-md-8,
    .section-9 .col-md-4 {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .notice-top-bar .btn {
        width: 100%;
    }

    .hero-section {
        padding-top: 2.3rem !important;
        padding-bottom: 2.3rem !important;
    }

    .hero-section .display-5 {
        font-size: 1.72rem;
        line-height: 1.2;
    }

    .lead {
        font-size: .95rem;
    }

    .service-strip-card {
        box-shadow: 0 8px 16px rgba(15, 23, 42, 0.06);
    }

    .section-9 .sub-title h2,
    .section-11 .card-header h2 {
        font-size: 1rem;
    }

    .table {
        font-size: .86rem;
    }

    .notice-top-bar .container {
        justify-content: center !important;
        text-align: center;
    }

    .brand-wrap {
        justify-content: center;
        width: 100%;
    }

    .topbar .row {
        text-align: center;
    }

    #account-panel .nav-link {
        padding: .65rem .75rem;
    }
}
