/* ══════════════════════════════════════
   General Page Styles
   ══════════════════════════════════════ */
.hps-page-wrapper {
    background-color: #f8fafc;
    min-height: 80vh;
    padding-bottom: 60px;
    direction: rtl;
}

/* Appending Cart CSS (For WooCommerce Cart Block) */

/* ══════════════════════════════════════
   Checkout Timeline & Hero
   ══════════════════════════════════════ */

.hps-checkout-hero {
    margin-bottom: -100px; /* Pulls content up to overlap */
    padding-bottom: 140px;
}

.hps-checkout-hero .hps-page-title {
    margin-bottom: 30px;
}

.hps-checkout-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 24px 40px;
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hps-timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    opacity: 0.6;
    transition: all 0.4s ease;
}

.hps-timeline-step.active {
    opacity: 1;
}

.hps-timeline-step .step-num {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.3rem;
    color: #fff;
    transition: all 0.4s ease;
}

.hps-timeline-step.active .step-num {
    background: #ffc107;
    border: 2px solid #ffc107;
    color: #1e2850;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.hps-timeline-step .step-name {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Connectors */
.hps-timeline-connector {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 16px;
    position: relative;
    top: -15px;
    border-radius: 2px;
    transition: all 0.4s ease;
}

.hps-timeline-connector.active {
    background: #ffc107;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

/* Glass Container for Cart */
.hps-glass-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
}

/* ══════════════════════════════════════
   WooCommerce Cart Page (Block Based)
   ══════════════════════════════════════ */

/* Main Page Background */
.page-template-default .hps-page-wrapper,
.woocommerce-cart .hps-page-wrapper,
body.page .hps-page-wrapper {
    background-color: #f4f6fa;
}

/* Use Flexbox for safer WooCommerce Block layout */
.wc-block-components-sidebar-layout.wc-block-cart {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 30px;
    align-items: flex-start;
    width: 100% !important;
    max-width: 100% !important;
}

/* Right column (Cart Table & Form) */
.wc-block-cart__main {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    margin: 0 !important;
}

/* Left column (Cart Totals) */
.wc-block-cart__sidebar {
    flex: 0 0 340px !important;
    width: 340px !important;
    max-width: 340px !important;
    box-sizing: border-box !important;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    position: sticky !important;
    top: 20px;
    margin: 0 !important;
}

/* Cart Table Styles */
table.wc-block-cart-items thead th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    padding: 16px;
    border-bottom: 2px solid #e2e8f0;
    font-size: 0.95rem;
}

table.wc-block-cart-items tbody td {
    padding: 20px 10px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

/* Product Remove Button */
.wc-block-cart-item__remove-link {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #fee2e2;
    color: #ef4444 !important;
    border: none;
    transition: all 0.3s;
    margin-top: 10px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}
.wc-block-cart-item__remove-link svg {
    fill: currentColor;
    width: 20px;
    height: 20px;
}
.wc-block-cart-item__remove-link:hover {
    background: #ef4444;
    color: #fff !important;
}

/* Product Image */
.wc-block-cart-item__image img {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    object-fit: cover;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

/* Product Name */
a.wc-block-components-product-name {
    color: #1e2850 !important;
    font-size: 1.1rem;
    font-weight: 800;
    text-decoration: none;
    margin-bottom: 8px;
}
a.wc-block-components-product-name:hover {
    color: #3b82f6 !important;
}

/* Price */
.wc-block-components-product-price {
    color: #475569;
    font-weight: 700;
}
.wc-block-components-product-price__regular {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-left: 6px;
}
.wc-block-components-product-price__value {
    color: #1e2850;
    font-size: 1.1rem;
}

/* Quantity Input wrapper */
.wc-block-components-quantity-selector {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    height: 44px;
    margin-top: 12px;
}
.wc-block-components-quantity-selector__input {
    font-family: inherit;
    font-size: 1.1rem;
    color: #1e2850;
    font-weight: 700;
}

/* Total column */
.wc-block-cart-item__total .wc-block-formatted-money-amount {
    color: #3b82f6;
    font-weight: 900;
    font-size: 1.2rem;
}
.wc-block-components-sale-badge {
    background: #dcfce7;
    color: #166534;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 8px;
}

/* Cart Sidebar (Totals) */
.wc-block-cart__totals-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e2850;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.wc-block-components-totals-item {
    padding: 16px 0;
    border-bottom: 1px solid #f8fafc;
}

.wc-block-components-totals-item__label {
    font-weight: 700;
    color: #475569;
}

.wc-block-components-totals-item__value {
    font-weight: 800;
    color: #1e2850;
    font-size: 1.15rem;
}

.wc-block-components-totals-footer-item {
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 1.4rem;
    color: #3b82f6;
}

/* Coupon Button */
.wc-block-components-panel__button {
    background: #f1f5f9;
    color: #475569;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 700;
    margin-bottom: 20px;
}
.wc-block-components-panel__button:hover {
    background: #e2e8f0;
    color: #1e2850;
}

/* Checkout Button */
.wc-block-cart__submit-button {
    height: 56px !important;
    background: #ffc107 !important;
    color: #1e2850 !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    border-radius: 12px !important;
    border: none !important;
    margin-top: 24px;
}
.wc-block-cart__submit-button:hover {
    background: #e0a800 !important;
}

/* Responsive tweaks */
@media (max-width: 991px) {
    .wc-block-components-sidebar-layout.wc-block-cart {
        flex-wrap: wrap !important;
    }
    .wc-block-cart__main,
    .wc-block-cart__sidebar {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 16px !important;
    }
    .hps-checkout-hero {
        margin-bottom: -60px;
        padding-bottom: 100px;
    }
    .hps-timeline-step .step-name {
        font-size: 0.75rem;
    }
}

.hps-page-hero {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    padding: 80px 20px;
    text-align: center;
    color: #fff;
    margin-bottom: 50px;
}

.hps-page-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0 0 10px 0;
    color: #FFCC03;
}

.hps-page-subtitle {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin: 0;
}

.hps-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ══════════════════════════════════════
   About Us Page
   ══════════════════════════════════════ */
.hps-about-content {
    background: #fff;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.hps-about-text-section {
    margin-bottom: 50px;
}

.hps-about-heading {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e2850;
    margin-bottom: 20px;
    position: relative;
    padding-right: 15px;
}

.hps-about-heading::before {
    content: '';
    position: absolute;
    right: 0;
    top: 5px;
    bottom: 5px;
    width: 4px;
    background-color: #FFCC03;
    border-radius: 4px;
}

.hps-about-paragraph {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 15px;
}

.hps-about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hps-stat-box {
    background: #f1f5f9;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px dashed #cbd5e1;
    transition: transform 0.3s ease;
}

.hps-stat-box:hover {
    transform: translateY(-5px);
    border-color: #FFCC03;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.hps-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: #FF0303;
    margin-bottom: 10px;
}

.hps-stat-label {
    font-size: 1rem;
    font-weight: 700;
    color: #1e2850;
}

/* ══════════════════════════════════════
   Contact Us Page
   ══════════════════════════════════════ */
.hps-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.hps-contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hps-contact-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.hps-cc-icon {
    width: 50px;
    height: 50px;
    background: #FFCC03;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #1e2850;
    flex-shrink: 0;
}

.hps-cc-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: #1e2850;
    font-weight: 800;
}

.hps-cc-content p, .hps-cc-content a {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #64748b;
    text-decoration: none;
}

.hps-cc-content a:hover {
    color: #FF0303;
}

.hps-contact-form-wrapper {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.hps-contact-form-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e2850;
    margin: 0 0 10px 0;
}

.hps-contact-form-subtitle {
    font-size: 0.95rem;
    color: #94a3b8;
    margin: 0 0 30px 0;
}

.hps-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hps-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.hps-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hps-form-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #475569;
}

.hps-form-group input,
.hps-form-group textarea {
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    font-family: inherit;
    font-size: 0.95rem;
    color: #1e293b;
    transition: all 0.3s ease;
}

.hps-form-group input:focus,
.hps-form-group textarea:focus {
    outline: none;
    border-color: #FFCC03;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 204, 3, 0.2);
}

.hps-submit-btn {
    background: #FF0303;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.hps-submit-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

@media (max-width: 992px) {
    .hps-contact-grid {
        grid-template-columns: 1fr;
    }
    .hps-about-stats {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .hps-form-row {
        grid-template-columns: 1fr;
    }
    .hps-about-content {
        padding: 30px 20px;
    }
}
/ *   A p p e n d i n g   C a r t   C S S   * /  
 