/* ==========================================================================
   ayrabd - Components Stylesheet
   Hero, Categories, Flash Sales, Product Cards, Single Product & Checkout
   ========================================================================== */

/* Hero Slider Section */
.slider-section {
    padding: 16px 0 24px;
}

.home-slider-container {
    position: relative;
    border-radius: var(--home-radius);
    overflow: hidden;
    box-shadow: var(--store-shadow-sm);
    background: #000;
}

.slider-item img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

/* Category Directory Grid */
.home-categories-section {
    padding: 24px 0 32px;
}

.sec_title {
    margin-bottom: 22px;
}

.section-title-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1.5px solid var(--home-line);
}

.section-title-name {
    font-size: clamp(20px, 2.2vw, 24px);
    font-weight: 700;
    color: var(--store-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-category-directory {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.home-category-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1px solid var(--store-border);
    border-radius: 12px;
    padding: 12px 16px;
    text-decoration: none;
    box-shadow: var(--store-shadow-sm);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-category-card:hover {
    transform: translateY(-3px);
    border-color: var(--store-primary);
    box-shadow: var(--store-shadow-md);
}

.category-media {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--store-secondary);
}

.category-name-label {
    flex: 1;
    font-size: 16px;
    font-weight: 700;
    color: var(--store-text);
}

.category-link-arrow {
    font-size: 14px;
    color: var(--store-muted);
    transition: transform 0.2s ease, color 0.2s ease;
}

.home-category-card:hover .category-link-arrow {
    transform: translateX(4px);
    color: var(--store-primary);
}

/* Flash Sales Section */
.flash-sales-section {
    background: color-mix(in srgb, var(--store-primary) 5%, var(--store-surface));
    border-top: 1px solid var(--home-line);
    border-bottom: 1px solid var(--home-line);
    padding: 36px 0;
    margin: 20px 0;
}

.flash-sales-section .section-title-header {
    background: var(--store-primary);
    color: #ffffff;
    padding: 16px 22px;
    border-radius: 12px;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.flash-sales-section .section-title-name {
    color: #ffffff;
    font-size: 22px;
}

.flash-sales-section .section-title-name i {
    color: #ffd43b;
    font-size: 24px;
}

.flash-sales-timer-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.flash-countdown-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.9);
}

.offer_timer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.timer-box {
    background: #ffffff;
    color: var(--store-primary);
    border-radius: 8px;
    padding: 4px 10px;
    text-align: center;
    min-width: 46px;
}

.timer-box .timer-val {
    display: block;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
}

.timer-box .timer-lbl {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: var(--store-muted);
    text-transform: uppercase;
}

/* Product Grid & Cards */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.product_item {
    background: #ffffff;
    border: 1px solid var(--store-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--store-shadow-sm);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product_item:hover {
    transform: translateY(-4px);
    box-shadow: var(--store-shadow-md);
    border-color: var(--store-primary);
}

/* Sale Discount Badge */
.sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
}

.sale-badge-box {
    background: var(--store-primary);
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.sale-badge-box p {
    margin: 0;
    font-size: 13px;
}

/* Product Image */
.pro_img {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background: #f8f9fa;
    overflow: hidden;
}

.pro_img a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.pro_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.product_item:hover .pro_img img {
    transform: scale(1.05);
}

/* Product Description / Content */
.pro_des {
    padding: 14px 14px 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pro_name {
    margin-bottom: 8px;
    min-height: 42px;
}

.pro_name a {
    font-size: 14px;
    font-weight: 600;
    color: var(--store-text);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pro_name a:hover {
    color: var(--store-primary);
}

.product-sold-count {
    display: inline-block;
    align-self: flex-start;
    background: #eef2f6;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.pro_price {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    color: var(--store-primary);
}

.pro_price del {
    font-size: 13px;
    color: var(--store-muted);
    font-weight: 400;
}

/* Product Dual Action Buttons */
.pro_btn {
    display: flex;
    align-items: stretch;
    gap: 6px;
    padding: 0 14px 14px;
    width: 100%;
}

.pro_btn form,
.pro_btn .order-btn-form {
    margin: 0;
}

.pro_btn .order-btn-wrap {
    flex: 1 1 auto;
}

.pro_btn .cart-btn-wrap {
    flex: 0 0 44px;
    max-width: 44px;
}

.order-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 40px;
    padding: 8px 12px;
    background: var(--store-primary);
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.order-btn:hover {
    background: var(--store-secondary);
}

.cart-icon-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 40px;
    background: var(--store-secondary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 17px;
    transition: all 0.2s ease;
}

.cart-icon-btn:hover {
    background: var(--store-primary);
}

/* View More Button Container */
.show_more_btn {
    text-align: center;
    margin-top: 32px;
}

.view_more_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: #ffffff;
    border: 1.5px solid var(--store-primary);
    color: var(--store-primary);
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s ease;
}

.view_more_btn:hover {
    background: var(--store-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Promotional Campaign Banner */
.home-ad-section {
    padding: 24px 0 36px;
}

.home-ad-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--store-shadow-sm);
}

.home-ad-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Single Product Page Styles
   ========================================================================== */
.main-details-page {
    padding: 24px 0 40px;
}

.breadcrumb {
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--store-muted);
}

.breadcrumb ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumb a {
    color: var(--store-muted);
}

.breadcrumb a:hover {
    color: var(--store-primary);
}

.product-gallery-column {
    position: relative;
}

.main-image-viewport {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--store-border);
    padding: 6px;
    box-shadow: var(--store-shadow-sm);
}

.main-image-viewport img {
    width: 100%;
    height: 480px;
    object-fit: contain;
    border-radius: 8px;
    transition: opacity 0.2s ease;
}

.indicator_thumb {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    padding: 2px;
}

.indicator-item {
    width: 82px;
    height: 82px;
    flex: 0 0 82px;
    border: 2px solid var(--store-border);
    border-radius: 8px;
    padding: 4px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.indicator-item.active,
.indicator-item:hover {
    border-color: var(--store-primary);
}

.indicator-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* Product Info Right Column */
.product-purchase-panel {
    background: #ffffff;
    border: 1px solid var(--store-border);
    border-radius: 12px;
    padding: 26px;
    box-shadow: var(--store-shadow-sm);
}

.product-purchase-panel .name {
    font-size: 22px;
    font-weight: 700;
    color: var(--store-text);
    margin-bottom: 10px;
    line-height: 1.35;
}

.details-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 14px;
}

.details-price del {
    font-size: 16px;
    color: var(--store-muted);
}

.details-price #newPrice {
    font-size: 26px;
    font-weight: 800;
    color: var(--store-primary);
}

.details-ratting-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #f59f00;
    margin-bottom: 12px;
}

.details-ratting-wrapper span {
    color: var(--store-text);
    font-weight: 600;
    margin-left: 4px;
}

.all-reviews-button {
    color: var(--store-primary);
    text-decoration: underline;
    margin-left: 10px;
}

.product-meta-item {
    font-size: 13px;
    color: var(--store-muted);
    margin-bottom: 6px;
}

.product-meta-item span {
    color: var(--store-text);
    font-weight: 600;
}

.product-note {
    background: #fff9db;
    border-left: 4px solid #f59f00;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    margin: 16px 0;
}

/* Product Variation Form Groups */
.product-configuration {
    margin: 18px 0;
    display: grid;
    gap: 12px;
}

.configuration-group {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    background: #ffffff;
}

.configuration-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #334155;
}

.configuration-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.configuration-choice {
    position: relative;
    cursor: pointer;
}

.configuration-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.configuration-choice span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 6px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.18s ease;
}

.configuration-choice input:checked + span {
    border-color: var(--store-primary);
    background: color-mix(in srgb, var(--store-primary) 6%, #ffffff);
    color: var(--store-primary);
    font-weight: 700;
    box-shadow: 0 0 0 2px rgba(102, 51, 51, 0.15);
}

.configuration-adjustment {
    font-size: 11px;
    color: var(--store-primary);
    margin-left: 4px;
    font-weight: 700;
}

/* Quantity and Single Product Action Buttons */
.product-actions-row {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quantity-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--store-border);
    border-radius: 8px;
    overflow: hidden;
    width: 130px;
}

.quantity-control button {
    width: 40px;
    height: 40px;
    background: #f1f3f5;
    border: none;
    font-size: 18px;
    cursor: pointer;
    font-weight: 700;
}

.quantity-control input {
    width: 50px;
    height: 40px;
    text-align: center;
    border: none;
    outline: none;
    font-weight: 700;
    font-size: 15px;
}

.single_product_buttons {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}

.order_now_btn {
    flex: 1;
    height: 46px;
    background: var(--store-primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.order_now_btn:hover {
    background: var(--store-secondary);
}

.add_cart_btn {
    flex: 1;
    height: 46px;
    background: #ffffff;
    color: var(--store-text);
    border: 1.5px solid var(--store-border);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add_cart_btn:hover {
    border-color: var(--store-primary);
    color: var(--store-primary);
    background: #fbf8f8;
}

/* Call and WhatsApp Buttons */
.product-contact-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 0;
}

.btn-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #1971c2;
    color: #ffffff;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25d366;
    color: #ffffff;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
}

.btn-call:hover { background: #1864ab; }
.btn-whatsapp:hover { background: #20ba5a; }

/* Delivery Cost Table Card */
.delivery-cost-card {
    border: 1px solid var(--store-border);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 18px;
}

.delivery-cost-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.delivery-cost-table caption {
    background: #f8f9fa;
    padding: 8px;
    font-weight: 700;
    color: var(--store-text);
    border-bottom: 1px solid var(--store-border);
}

.delivery-cost-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f1f3f5;
}

.delivery-cost-table td.text-end {
    text-align: right;
    font-weight: 700;
    color: var(--store-primary);
}

/* Tabs & Product Details */
.description-nav-wrapper {
    background: #ffffff;
    border-top: 1px solid var(--store-border);
    border-bottom: 1px solid var(--store-border);
    margin-top: 36px;
}

.desc-nav-ul {
    display: flex;
    gap: 24px;
}

.desc-nav-ul li a {
    display: block;
    padding: 14px 4px;
    font-weight: 700;
    font-size: 15px;
    color: var(--store-muted);
    border-bottom: 2px solid transparent;
}

.desc-nav-ul li a.active,
.desc-nav-ul li a:hover {
    color: var(--store-primary);
    border-bottom-color: var(--store-primary);
}

.details-action-box {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--store-border);
    padding: 24px;
    margin-top: 24px;
    line-height: 1.7;
}

.details-action-box h2 {
    font-size: 18px;
    margin-bottom: 14px;
    color: var(--store-text);
}

/* ==========================================================================
   Checkout Page Styles
   ========================================================================== */
.checkout-experience {
    padding: 32px 0 60px;
}

.checkout-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--store-border);
}

.transaction-eyebrow {
    font-size: 12px;
    font-weight: 700;
    color: var(--store-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkout-page-head h1 {
    font-size: 24px;
    font-weight: 800;
    margin: 4px 0;
}

.checkout-assurance {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border: 1px solid #d3f9d8;
    background: #ebfbee;
    border-radius: 8px;
    color: #2b8a3e;
    font-size: 13px;
}

.checkout-card {
    background: #ffffff;
    border: 1px solid var(--store-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--store-shadow-sm);
    margin-bottom: 24px;
}

.checkout-card-header {
    background: #f8f9fa;
    padding: 14px 18px;
    border-bottom: 1px solid var(--store-border);
}

.checkout-card-header h5,
.checkout-card-header h6 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.checkout-card-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.form-control {
    width: 100%;
    height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--store-border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: var(--store-primary);
    box-shadow: 0 0 0 3px rgba(102, 51, 51, 0.12);
}

textarea.form-control {
    height: auto;
    min-height: 80px;
    resize: none;
}

/* Delivery Area Radio Selection Cards */
.delivery-area-options {
    border: none;
    padding: 0;
    margin: 0;
}

.delivery-area-label {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.delivery-area-list {
    display: grid;
    gap: 10px;
}

.delivery-area-choice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1.5px solid var(--store-border);
    border-radius: 10px;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.18s ease;
}

.delivery-area-choice:hover {
    border-color: var(--store-primary);
}

.delivery-area-choice:has(input:checked) {
    border-color: var(--store-primary);
    background: color-mix(in srgb, var(--store-primary) 6%, #ffffff);
    box-shadow: 0 0 0 2px rgba(102, 51, 51, 0.15);
}

.delivery-area-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--store-text);
}

/* Payment Method Card */
.payment-method-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border: 2px solid var(--store-primary);
    background: color-mix(in srgb, var(--store-primary) 6%, #ffffff);
    border-radius: 10px;
    margin-top: 12px;
}

.payment-method-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-method-info i {
    font-size: 24px;
    color: var(--store-primary);
}

.payment-method-info strong {
    display: block;
    font-size: 14px;
}

.payment-method-info small {
    font-size: 12px;
    color: var(--store-muted);
}

.order_place_btn {
    width: 100%;
    height: 50px;
    background: var(--store-primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 18px;
    transition: background 0.2s ease;
}

.order_place_btn:hover {
    background: var(--store-secondary);
}

/* Order Summary Table */
.cart_table {
    width: 100%;
    border-collapse: collapse;
}

.cart_table th, .cart_table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--store-border);
    font-size: 13px;
    text-align: center;
}

.cart_table th {
    background: #f8f9fa;
    font-weight: 700;
}

.cart_table .delete-item-btn {
    background: transparent;
    border: none;
    color: #e03131;
    font-size: 16px;
    cursor: pointer;
}

.cart-table-prod {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.cart-table-prod img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
}

.summary-row th {
    text-align: right;
    background: transparent;
    font-weight: 600;
}

.grand-total-row th, .grand-total-row td {
    font-size: 16px;
    font-weight: 800;
    color: var(--store-primary);
    border-top: 2px solid var(--store-border);
}

/* Responsive Component Adjustments */
@media (max-width: 991px) {
    .home-category-directory {
        grid-template-columns: repeat(2, 1fr);
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 575px) {
    .home-category-directory {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .home-category-card {
        padding: 8px 10px;
        gap: 8px;
    }
    .category-media {
        width: 44px;
        height: 44px;
    }
    .category-name-label {
        font-size: 13px;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .pro_name a {
        font-size: 13px;
    }
    .pro_price {
        font-size: 15px;
    }
    .pro_btn {
        padding: 0 10px 10px;
    }
    .order-btn {
        font-size: 13px;
        height: 38px;
    }
    .cart-icon-btn {
        height: 38px;
    }
    .product-contact-actions {
        grid-template-columns: 1fr;
    }
    .checkout-page-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}


/* Desktop PC Responsive Checkout Row Layout */
.checkout-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-right: -15px;
    margin-left: -15px;
}

@media (min-width: 992px) {
    .checkout-summary-col .checkout-card {
        position: sticky;
        top: 85px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    }
}
