/* Enhanced CSS - FORCE HIDE SIDEBARS ON MOBILE */

/* ===== HIDE CATEGORY SIDEBARS ONLY (NOT order summary) ===== */

.cart-sidebar,
.sidebar-categories,
#sidebar,
.order-form-sidebar,
.sidebar-categories-collapsed,
.sidebar-collapsed,
.product-selection-sidebar {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Force main content to be full width */
.cart-body,
.order-form-body,
div[class*="cart-body"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin: 0 !important;
}

/* ===== MAIN LAYOUT ===== */

#order-standard_cart .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

#order-standard_cart {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Remove any flex/grid that might show sidebars */
#order-standard_cart > .row {
    display: flex !important;
    justify-content: center !important;
}

/* ===== TWO COLUMN LAYOUT - DISABLED, FULL WIDTH ===== */

.secondary-cart-body {
    width: 100% !important;
    float: none !important;
    padding-right: 0 !important;
}

.secondary-cart-sidebar {
    width: 100% !important;
    float: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 30px !important;
}

/* ===== MOBILE - FORCE STACK EVERYTHING ===== */

@media (max-width: 991px) {
    /* Hide category sidebar variations only */
    .cart-sidebar,
    .sidebar-categories,
    .sidebar-categories-collapsed,
    .sidebar-collapsed {
        display: none !important;
    }
    
    /* Full width content */
    .secondary-cart-body,
    .secondary-cart-sidebar,
    .cart-body {
        width: 100% !important;
        float: none !important;
        padding: 0 !important;
        display: block !important;
    }
    
    /* Order summary on mobile */
    .secondary-cart-sidebar {
        margin-top: 30px !important;
    }
}

/* Extra small mobile */
@media (max-width: 575px) {
    #order-standard_cart {
        padding: 0 10px !important;
    }
}

/* ===== PRODUCT INFO CARD ===== */

.product-info {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.product-info h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-info .description {
    font-size: 16px;
    opacity: 0.95;
}

/* Mobile product card */
@media (max-width: 767px) {
    .product-info {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .product-info h1 {
        font-size: 20px;
    }
    
    .product-info .description {
        font-size: 14px;
    }
}

/* ===== BILLING CYCLE DROPDOWN ===== */

#order-standard_cart #frmConfigureProduct select#inputBillingcycle,
#order-standard_cart #frmConfigureProduct select#inputBillingcycle.billing-cycle-select,
#order-standard_cart #frmConfigureProduct .billing-cycle-select {
    border: 3px solid #28a745 !important;
    padding: 5px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    background: white !important;
    color: #212529 !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #212529 !important;
    opacity: 1 !important;
    width: 100% !important;
    margin-bottom: 25px !important;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2) !important;
}

#order-standard_cart #frmConfigureProduct select#inputBillingcycle:focus,
#order-standard_cart #frmConfigureProduct .billing-cycle-select:focus {
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3) !important;
}

#order-standard_cart #frmConfigureProduct select#inputBillingcycle option,
#order-standard_cart #frmConfigureProduct .billing-cycle-select option {
    color: #212529 !important;
    background-color: #ffffff !important;
    -webkit-text-fill-color: #212529 !important;
    opacity: 1 !important;
}

/* Mobile billing cycle */
@media (max-width: 767px) {
    #inputBillingcycle {
        padding: 14px !important;
        font-size: 15px !important;
    }
}

/* ===== CONTINUE BUTTON ===== */

.btn-continue-checkout,
#btnContinueCheckout {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    border: none !important;
    color: white !important;
    padding: 18px 40px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    width: 100% !important;
    margin-top: 20px !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3) !important;
    transition: all 0.3s ease !important;
}

.btn-continue-checkout:hover,
#btnContinueCheckout:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4) !important;
}

/* Mobile continue button */
@media (max-width: 767px) {
    .btn-continue-checkout,
    #btnContinueCheckout {
        padding: 16px 30px !important;
        font-size: 16px !important;
    }
}

/* ===== ORDER SUMMARY ===== */

.order-summary {
    background: white;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.order-summary h2 {
    font-size: 24px;
    font-weight: 700;
    padding: 25px;
    margin: 0;
    border-bottom: 2px solid #f0f0f0;
}

.summary-container {
    padding: 25px;
}

/* Mobile order summary */
@media (max-width: 767px) {
    .order-summary h2 {
        font-size: 20px;
        padding: 20px;
    }
    
    .summary-container {
        padding: 20px;
    }
}

/* ===== FORM INPUTS ===== */

input.form-control,
select.form-control,
textarea.form-control,
.form-control {
    border-radius: 8px !important;
    border: 2px solid #ced4da !important;
   /*padding: 12px 16px !important;*/
    font-size: 15px !important;
    transition: all 0.2s ease !important;
}

input.form-control:focus,
select.form-control:focus,
textarea.form-control:focus {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1) !important;
}

/* Mobile form inputs */
@media (max-width: 767px) {
    input.form-control,
    select.form-control,
    textarea.form-control {
        padding: 10px 14px !important;
        font-size: 16px !important; /* Prevent zoom on iOS */
    }
}

/* ===== BUTTONS ===== */

.btn {
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.btn-primary {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    border: none !important;
}

.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3) !important;
}

/* Mobile buttons */
@media (max-width: 767px) {
    .btn {
        padding: 12px 20px !important;
        font-size: 15px !important;
    }
}

/* ===== ALERTS ===== */

.alert {
    border-radius: 10px !important;
    border-width: 2px !important;
    padding: 16px 20px !important;
}

/* Mobile alerts */
@media (max-width: 767px) {
    .alert {
        padding: 14px 18px !important;
        font-size: 14px !important;
    }
}

/* ===== RESPONSIVE TEXT ===== */

@media (max-width: 767px) {
    h1 {
        font-size: 26px !important;
    }
    
    h2 {
        font-size: 20px !important;
    }
    
    h3 {
        font-size: 18px !important;
    }
    
    body {
        font-size: 15px !important;
    }
    
    .font-size-36 {
        font-size: 24px !important;
    }
}

/* ===== TABLES ON MOBILE ===== */

@media (max-width: 767px) {
    table {
        font-size: 14px !important;
    }
    
    .table-responsive {
        border: none !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
}

/* ===== CHECKOUT BUTTON IN SIDEBAR ===== */

.btn-checkout {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    border: none !important;
    color: white !important;
    padding: 18px 24px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    width: 100% !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3) !important;
    transition: all 0.3s ease !important;
}

.btn-checkout:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4) !important;
}

/* Mobile checkout button */
@media (max-width: 767px) {
    .btn-checkout {
        padding: 16px 20px !important;
        font-size: 16px !important;
    }
}

/* ===== MOBILE TOUCH IMPROVEMENTS ===== */

@media (max-width: 767px) {
    /* Ensure all clickable elements are large enough */
    a, button, input[type="submit"], input[type="button"] {
        min-height: 44px !important;
    }
    
    /* Better spacing for mobile */
    .form-group {
        margin-bottom: 20px !important;
    }
    
    /* Ensure proper viewport */
    body {
        -webkit-text-size-adjust: 100% !important;
    }
}

/* ===== CLEARFIX ===== */

.clearfix::after,
.row::after {
    content: "";
    display: table;
    clear: both;
}

/* ===== PRODUCTS PAGE ===== */

.products-hero {
    text-align: center;
    padding: 40px 20px 30px;
    margin-bottom: 30px;
}

.products-hero h1 {
    font-size: 36px !important;
    font-weight: 800 !important;
    color: #212529;
    margin-bottom: 10px;
}

.products-tagline {
    font-size: 18px;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 0 10px;
}

@media (max-width: 991px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Product Card */
.product-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    border-color: #28a745;
    box-shadow: 0 8px 30px rgba(40, 167, 69, 0.15);
    transform: translateY(-4px);
}

/* Card Header */
.product-card-header {
    padding: 25px 25px 0;
}

.product-card-header h3 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #212529;
    margin: 0 0 5px 0;
}

.stock-badge {
    display: inline-block;
    background: #e8f5e9;
    color: #28a745;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 5px;
}

/* Card Pricing */
.product-card-pricing {
    padding: 15px 25px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.price-label {
    display: block;
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.price-amount {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: #28a745;
    line-height: 1.1;
}

.price-cycle {
    display: block;
    font-size: 14px;
    color: #6c757d;
    margin-top: 2px;
}

.price-setup {
    display: block;
    font-size: 12px;
    color: #adb5bd;
    margin-top: 5px;
}

/* Card Body */
.product-card-body {
    padding: 20px 25px;
    flex: 1;
}

.product-description {
    font-size: 14px;
    color: #495057;
    line-height: 1.6;
    margin-bottom: 15px;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-features li {
    padding: 6px 0;
    font-size: 14px;
    color: #495057;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.product-features li i {
    color: #28a745;
    font-size: 12px;
    margin-top: 4px;
    flex-shrink: 0;
}

.product-features .feature-value {
    font-weight: 600;
    color: #212529;
}

/* Card Footer */
.product-card-footer {
    padding: 0 25px 25px;
}

.btn-order-now {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    border: none !important;
    color: white !important;
    padding: 14px 20px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.25) !important;
}

.btn-order-now:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.35) !important;
    color: white !important;
}

.btn-order-now i {
    margin-right: 8px;
}

@media (max-width: 767px) {
    .products-hero h1 {
        font-size: 28px !important;
    }
    
    .products-tagline {
        font-size: 16px;
    }
    
    .product-card-header h3 {
        font-size: 20px !important;
    }
    
    .price-amount {
        font-size: 30px;
    }
}

/* ===== DOMAIN SELECTION PAGE ===== */

.domain-page-hero {
    text-align: center;
    padding: 40px 20px 30px;
    margin-bottom: 30px;
}

.domain-hero-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.domain-page-hero h1 {
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #212529;
    margin-bottom: 10px;
}

.domain-hero-sub {
    font-size: 17px;
    color: #6c757d;
    max-width: 500px;
    margin: 0 auto;
}

/* Domain Options Grid */
.domain-options-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

#order-standard_cart #frmProductDomain {
    max-width: 860px;
    margin: 0 auto;
}

#order-standard_cart #frmProductDomain .domain-selection-options {
    width: 100%;
}

#order-standard_cart #frmProductDomain .domain-options-grid {
    max-width: 820px;
    margin: 0 auto !important;
}

#order-standard_cart #frmProductDomain .domain-option-card {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

#order-standard_cart #frmProductDomain .free-domain-notice {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

/* Domain Option Card */
.domain-option-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.domain-option-card:hover {
    border-color: #c3e6cb;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.domain-option-card.active,
.domain-option-card:has(input:checked) {
    border-color: #28a745;
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.15);
}

/* Option Label (clickable header) */
.domain-option-label {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 25px;
    cursor: pointer;
    margin: 0;
    transition: background 0.2s ease;
}

.domain-option-label:hover {
    background: #f8fff9;
}

.domain-option-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Option Icon */
.domain-option-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    background: #e8f5e9;
    color: #28a745;
}

.domain-option-icon.register {
    background: #e3f2fd;
    color: #1976d2;
}

.domain-option-icon.transfer {
    background: #fff3e0;
    color: #f57c00;
}

.domain-option-icon.owndomain {
    background: #f3e5f5;
    color: #8e24aa;
}

.domain-option-icon.subdomain {
    background: #fff8e1;
    color: #f9a825;
}

/* Option Content */
.domain-option-content h3 {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #212529;
    margin: 0 0 4px 0;
}

.domain-option-content p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
}

/* Checked/active state indicator */
.domain-option-card.active .domain-option-icon,
.domain-option-card:has(input:checked) .domain-option-icon {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

/* Domain Input Group */
.domain-option-card .domain-input-group {
    padding: 0 25px 25px;
    border-top: 1px solid #f0f0f0;
    margin-top: 0;
    padding-top: 20px;
}

/* Hide input groups by default, show when card is active */
.domain-option-card .domain-input-group {
    display: none;
}

.domain-option-card.active .domain-input-group,
.domain-option-card:has(input:checked) .domain-input-group {
    display: block !important;
}

.domain-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.domain-www-label {
    font-weight: 700;
    color: #495057;
    font-size: 15px;
    flex-shrink: 0;
    background: #f8f9fa;
    padding: 10px 14px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.domain-name-input {
    flex: 1 !important;
    min-width: 0;
}

.domain-tld-select {
    width: 160px !important;
    flex-shrink: 0 !important;
    min-width: 160px !important;
}

/* Force domain dropdowns to show text properly */
.domain-input-row select.form-control,
.domain-input-row .domain-tld-select,
select#registertld,
select#transfertld,
select#subdomaintld {
    width: 160px !important;
    min-width: 160px !important;
    font-size: 15px !important;
    padding: 10px 30px 10px 14px !important;
    height: auto !important;
    overflow: visible !important;
    text-overflow: ellipsis !important;
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
    appearance: menulist !important;
}

.btn-domain-action {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    border: none !important;
    color: white !important;
    padding: 10px 24px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.25) !important;
}

.btn-domain-action:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.35) !important;
}

.btn-domain-action i {
    margin-left: 6px;
}

/* Free Domain Notice */
.free-domain-notice {
    text-align: center;
    margin-top: 25px;
    padding: 15px;
    background: #f8fff9;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    color: #28a745;
    font-size: 14px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.free-domain-notice i {
    margin-right: 6px;
}

/* Domain Continue Button */
.btn-domain-continue {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    border: none !important;
    color: white !important;
    padding: 16px 50px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    margin-top: 30px !important;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3) !important;
}

/* Mobile Domain Page */
@media (max-width: 767px) {
    .domain-page-hero h1 {
        font-size: 24px !important;
    }

    .domain-hero-sub {
        font-size: 15px;
    }

    .domain-option-label {
        padding: 15px 18px;
        gap: 14px;
    }

    .domain-option-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .domain-option-content h3 {
        font-size: 15px !important;
    }

    .domain-option-content p {
        font-size: 13px;
    }

    .domain-input-row {
        flex-wrap: wrap;
    }

    .domain-name-input {
        flex: 1 1 100% !important;
        order: 1;
    }

    .domain-www-label {
        order: 0;
        flex: 0 0 auto;
    }

    .domain-tld-select {
        width: auto !important;
        flex: 1 !important;
        order: 2;
    }

    .btn-domain-action {
        width: 100% !important;
        order: 3;
        margin-top: 5px;
    }

    .domain-option-card .domain-input-group {
        padding: 15px 18px 20px;
    }
}
