/* ============================================
   STORE PRODUCT PAGE - PREMIUM REDESIGN
   Modern dark theme with premium aesthetics
   ============================================ */

/* Variables */
:root {
    --store-bg: #101622;
    --store-surface: #1a2130;
    --store-surface-light: #212a3e;
    --store-border: rgba(99, 148, 255, 0.12);
    --store-border-hover: rgba(99, 148, 255, 0.25);
    --store-text: #f0f6ff;
    --store-text-secondary: #a8c0e8;
    --store-text-muted: #6b8ab8;
    --store-primary: #3b82f6;
    --store-primary-dark: #2563eb;
    --store-success: #22c55e;
    --store-success-dark: #16a34a;
    --store-accent: #8b5cf6;
    --store-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --store-shadow-hover: 0 16px 48px rgba(59, 130, 246, 0.25);
    --store-radius: 20px;
    --store-radius-sm: 12px;
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
#order-standard_cart {
    background: transparent !important;
    padding: 2rem 1rem 4rem !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    min-height: 60vh;
}

/* ============================================
   SIDEBAR - HIDE ON ALL SCREENS
   ============================================ */
#order-standard_cart .cart-sidebar {
    display: none !important;
}

#order-standard_cart .sidebar-collapsed {
    display: none !important;
}

/* ============================================
   CART BODY - FULL WIDTH
   ============================================ */
#order-standard_cart .cart-body {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding: 0 !important;
}

/* ============================================
   PAGE HEADER
   ============================================ */
#order-standard_cart .header-lined {
    text-align: center;
    border: none !important;
    margin-bottom: 3rem !important;
    padding: 2rem 0 !important;
    position: relative;
}

#order-standard_cart .header-lined::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--store-primary), var(--store-accent));
    border-radius: 2px;
}

#order-standard_cart .header-lined h1 {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    color: var(--store-text) !important;
    letter-spacing: -0.02em !important;
    margin: 0 !important;
    text-transform: capitalize;
}

#order-standard_cart .header-lined p {
    color: var(--store-text-secondary) !important;
    font-size: 1.125rem !important;
    margin-top: 0.75rem !important;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   PRODUCTS CONTAINER
   ============================================ */
#order-standard_cart .products {
    margin: 0 !important;
    padding: 0 !important;
}

#order-standard_cart .products .row,
#order-standard_cart .products .row-eq-height {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)) !important;
    gap: 2rem !important;
    margin: 0 !important;
}

#order-standard_cart .products .row>.col-md-6,
#order-standard_cart .products .row-eq-height>.col-md-6 {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    flex: none !important;
}

/* ============================================
   PRODUCT CARD
   ============================================ */
#order-standard_cart .product {
    background: var(--store-surface) !important;
    border: 1px solid var(--store-border) !important;
    border-radius: var(--store-radius) !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    box-shadow: var(--store-shadow) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    position: relative;
}

#order-standard_cart .product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--store-primary), var(--store-accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

#order-standard_cart .product:hover {
    transform: translateY(-8px) !important;
    border-color: var(--store-border-hover) !important;
    box-shadow: var(--store-shadow-hover) !important;
}

#order-standard_cart .product:hover::before {
    opacity: 1;
}

/* ============================================
   PRODUCT HEADER
   ============================================ */
#order-standard_cart .product header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%) !important;
    border-radius: 0 !important;
    padding: 1.5rem 1.75rem !important;
    margin: 0 !important;
    border-bottom: 1px solid var(--store-border) !important;
    position: relative;
}

#order-standard_cart .product header span {
    font-size: 1.375rem !important;
    font-weight: 700 !important;
    color: var(--store-text) !important;
    display: block !important;
    margin: 0 !important;
}

#order-standard_cart .product header .qty {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    background: rgba(34, 197, 94, 0.15) !important;
    color: var(--store-success) !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    padding: 0.375rem 0.75rem !important;
    border-radius: 20px !important;
    float: none !important;
}

/* ============================================
   PRODUCT DESCRIPTION
   ============================================ */
#order-standard_cart .product .product-desc {
    float: none !important;
    width: 100% !important;
    padding: 1.5rem 1.75rem !important;
    font-size: 0.9375rem !important;
    color: var(--store-text-secondary) !important;
    line-height: 1.6 !important;
    flex: 1 !important;
}

#order-standard_cart .product .product-desc p {
    color: var(--store-text-secondary) !important;
    margin: 0 0 1rem 0 !important;
}

#order-standard_cart .product .product-desc ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#order-standard_cart .product .product-desc li {
    padding: 0.5rem 0 !important;
    padding-left: 1.75rem !important;
    position: relative !important;
    color: var(--store-text-secondary) !important;
    border-bottom: 1px solid rgba(99, 148, 255, 0.06) !important;
}

#order-standard_cart .product .product-desc li:last-child {
    border-bottom: none !important;
}

#order-standard_cart .product .product-desc li::before {
    content: '✓';
    position: absolute !important;
    left: 0 !important;
    color: var(--store-success) !important;
    font-weight: 700 !important;
}

#order-standard_cart .product .product-desc .feature-value {
    color: var(--store-primary) !important;
    font-weight: 700 !important;
}

/* ============================================
   PRODUCT FOOTER
   ============================================ */
#order-standard_cart .product footer {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 1.5rem 1.75rem !important;
    background: var(--store-bg) !important;
    border-top: 1px solid var(--store-border) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1.5rem !important;
    text-align: left !important;
}

/* ============================================
   PRODUCT PRICING
   ============================================ */
#order-standard_cart .product .product-pricing {
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
}

#order-standard_cart .product .product-pricing .price {
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: var(--store-success) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
}

#order-standard_cart .product .product-pricing br {
    display: none !important;
}

#order-standard_cart .product .product-pricing br+* {
    display: inline-block !important;
    color: var(--store-text-muted) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    margin-left: 0 !important;
}

#order-standard_cart .product .product-pricing small {
    display: block !important;
    color: var(--store-text-muted) !important;
    font-size: 0.75rem !important;
    margin-top: 0.25rem !important;
}

/* Billing cycle text */
#order-standard_cart .product footer {
    font-size: 0.875rem !important;
    color: var(--store-text-muted) !important;
}

/* ============================================
   ORDER NOW BUTTON
   ============================================ */
#order-standard_cart .product .btn-order-now,
#order-standard_cart .product .btn-success {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    background: linear-gradient(135deg, var(--store-success) 0%, var(--store-success-dark) 100%) !important;
    border: none !important;
    color: white !important;
    padding: 1rem 2rem !important;
    border-radius: var(--store-radius-sm) !important;
    font-size: 0.9375rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.35) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

#order-standard_cart .product .btn-order-now:hover,
#order-standard_cart .product .btn-success:hover {
    background: linear-gradient(135deg, var(--store-success-dark) 0%, #15803d 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.45) !important;
    color: white !important;
}

#order-standard_cart .product .btn-order-now:active,
#order-standard_cart .product .btn-success:active {
    transform: translateY(0) !important;
}

#order-standard_cart .product .btn-order-now i,
#order-standard_cart .product .btn-success i {
    font-size: 1rem !important;
}

/* ============================================
   PANELS & CARDS (Category Sidebar in collapsed)
   ============================================ */
#order-standard_cart .panel,
#order-standard_cart .card {
    background: var(--store-surface) !important;
    border: 1px solid var(--store-border) !important;
    border-radius: var(--store-radius-sm) !important;
    overflow: hidden !important;
}

#order-standard_cart .panel-heading,
#order-standard_cart .card-header {
    background: var(--store-surface-light) !important;
    border-bottom: 1px solid var(--store-border) !important;
    padding: 1rem 1.25rem !important;
}

#order-standard_cart .panel-heading h3,
#order-standard_cart .card-header h3 {
    color: var(--store-text) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

#order-standard_cart .panel-heading i,
#order-standard_cart .card-header i {
    color: var(--store-primary) !important;
}

#order-standard_cart .panel-body,
#order-standard_cart .card-body {
    background: transparent !important;
    padding: 1rem 1.25rem !important;
}

#order-standard_cart .list-group-item {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--store-border) !important;
    padding: 0.875rem 1.25rem !important;
    color: var(--store-text-secondary) !important;
    transition: all 0.2s ease !important;
}

#order-standard_cart .list-group-item:hover {
    background: rgba(59, 130, 246, 0.1) !important;
    color: var(--store-primary) !important;
}

#order-standard_cart .list-group-item.active {
    background: rgba(59, 130, 246, 0.15) !important;
    color: var(--store-primary) !important;
    font-weight: 600 !important;
}

#order-standard_cart .list-group-item:last-child {
    border-bottom: none !important;
}

/* ============================================
   FORM CONTROLS
   ============================================ */
#order-standard_cart .form-control,
#order-standard_cart select.form-control {
    background: var(--store-bg) !important;
    border: 1px solid var(--store-border) !important;
    border-radius: 8px !important;
    color: var(--store-text) !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.9375rem !important;
    transition: all 0.2s ease !important;
}

#order-standard_cart .form-control:focus {
    border-color: var(--store-primary) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
    outline: none !important;
}

/* ============================================
   MODAL STYLES
   ============================================ */
#order-standard_cart .modal-content,
#recommendationsModal .modal-content {
    background: var(--store-surface) !important;
    border: 1px solid var(--store-border) !important;
    border-radius: var(--store-radius) !important;
    overflow: hidden !important;
}

#order-standard_cart .modal-header,
#recommendationsModal .modal-header {
    background: var(--store-surface-light) !important;
    border-bottom: 1px solid var(--store-border) !important;
    padding: 1.5rem !important;
}

#order-standard_cart .modal-title,
#recommendationsModal .modal-title,
#recommendationsModal h4 {
    color: var(--store-text) !important;
    font-weight: 700 !important;
}

#order-standard_cart .modal-body,
#recommendationsModal .modal-body {
    padding: 1.5rem !important;
    color: var(--store-text-secondary) !important;
}

#order-standard_cart .modal-footer,
#recommendationsModal .modal-footer {
    background: transparent !important;
    border-top: 1px solid var(--store-border) !important;
    padding: 1rem 1.5rem !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 991px) {

    #order-standard_cart .products .row,
    #order-standard_cart .products .row-eq-height {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 767px) {
    #order-standard_cart {
        padding: 1rem 0.75rem 3rem !important;
    }

    #order-standard_cart .header-lined h1 {
        font-size: 1.75rem !important;
    }

    #order-standard_cart .products .row,
    #order-standard_cart .products .row-eq-height {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    #order-standard_cart .product header {
        padding: 1.25rem !important;
    }

    #order-standard_cart .product header span {
        font-size: 1.25rem !important;
    }

    #order-standard_cart .product .product-desc {
        padding: 1.25rem !important;
    }

    #order-standard_cart .product footer {
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: center !important;
        padding: 1.25rem !important;
        gap: 1rem !important;
    }

    #order-standard_cart .product .product-pricing {
        text-align: center !important;
    }

    #order-standard_cart .product .btn-order-now,
    #order-standard_cart .product .btn-success {
        width: 100% !important;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#order-standard_cart .product {
    animation: fadeInUp 0.5s ease-out forwards;
}

#order-standard_cart .products .col-md-6:nth-child(1) .product {
    animation-delay: 0.1s;
}

#order-standard_cart .products .col-md-6:nth-child(2) .product {
    animation-delay: 0.2s;
}

#order-standard_cart .products .col-md-6:nth-child(3) .product {
    animation-delay: 0.3s;
}

#order-standard_cart .products .col-md-6:nth-child(4) .product {
    animation-delay: 0.4s;
}

#order-standard_cart .products .col-md-6:nth-child(5) .product {
    animation-delay: 0.5s;
}

#order-standard_cart .products .col-md-6:nth-child(6) .product {
    animation-delay: 0.6s;
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
#order-standard_cart ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

#order-standard_cart ::-webkit-scrollbar-track {
    background: var(--store-bg);
    border-radius: 4px;
}

#order-standard_cart ::-webkit-scrollbar-thumb {
    background: var(--store-border);
    border-radius: 4px;
}

#order-standard_cart ::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 148, 255, 0.25);
}

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

/* Domain Selection Container */
#order-standard_cart .domain-selection-options {
    margin: 1.5rem 0;
}

#order-standard_cart .domain-selection-options .option {
    background: var(--store-surface);
    border: 1px solid var(--store-border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

#order-standard_cart .domain-selection-options .option:hover {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.05);
}

#order-standard_cart .domain-selection-options .option-selected,
#order-standard_cart .domain-selection-options .option.active {
    border-color: var(--store-primary);
    background: rgba(59, 130, 246, 0.1);
}

#order-standard_cart .domain-selection-options label {
    color: var(--store-text);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

#order-standard_cart .domain-selection-options input[type="radio"] {
    accent-color: var(--store-primary);
    width: 18px;
    height: 18px;
}

/* Domain Input Group */
#order-standard_cart .domain-input-group {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--store-border);
}

#order-standard_cart .domains-row {
    margin: 0;
}

/* Input Group Styling */
#order-standard_cart .input-group {
    display: flex;
}

#order-standard_cart .input-group-addon,
#order-standard_cart .input-group-prepend,
#order-standard_cart .input-group-text {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--store-border);
    border-right: none;
    color: var(--store-primary);
    padding: 0.75rem 1rem;
    font-weight: 600;
    border-radius: 8px 0 0 8px;
    display: flex;
    align-items: center;
}

#order-standard_cart .input-group .form-control {
    border-radius: 0 8px 8px 0 !important;
}

/* Primary Button */
#order-standard_cart .btn-primary {
    background: linear-gradient(135deg, var(--store-primary) 0%, #2563eb 100%) !important;
    border: none !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

#order-standard_cart .btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

#order-standard_cart .btn-lg {
    padding: 1rem 2rem !important;
    font-size: 1rem !important;
}

#order-standard_cart .btn-block {
    width: 100%;
}

/* Domain Checker Results */
#order-standard_cart .domain-lookup-primary-loader,
#order-standard_cart .domain-lookup-primary-results {
    text-align: center;
    padding: 2rem;
}

#order-standard_cart .domain-checker-result-headline {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1rem 0;
}

#order-standard_cart .domain-checker-available {
    color: var(--store-success) !important;
}

#order-standard_cart .domain-checker-unavailable {
    color: #ef4444 !important;
}

#order-standard_cart .domain-price .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--store-success);
    margin-left: 0.5rem;
}

/* Spotlight TLDs */
#order-standard_cart .spotlight-tlds {
    background: var(--store-surface);
    border-radius: 12px;
    padding: 1rem;
    margin: 1.5rem 0;
}

#order-standard_cart .spotlight-tld {
    background: var(--store-bg);
    border: 1px solid var(--store-border);
    border-radius: 10px;
    text-align: center;
    padding: 1rem;
    color: var(--store-text);
    font-weight: 600;
    height: auto;
    min-height: 100px;
}

#order-standard_cart .spotlight-tld:hover {
    border-color: var(--store-primary);
}

#order-standard_cart .spotlight-tld .btn {
    background: var(--store-primary) !important;
    color: white !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    border-radius: 6px !important;
    font-size: 0.75rem !important;
}

/* Suggested Domains */
#order-standard_cart .suggested-domains {
    background: var(--store-surface);
    border: 1px solid var(--store-border);
    border-radius: 12px;
    overflow: hidden;
    margin: 1.5rem 0;
}

#order-standard_cart .suggested-domains .panel-heading,
#order-standard_cart .suggested-domains .card-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
    border-bottom: 1px solid var(--store-border);
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--store-text);
}

#order-standard_cart .suggested-domains .list-group-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--store-border);
    padding: 1rem 1.25rem;
    color: var(--store-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#order-standard_cart .suggested-domains .list-group-item:last-child {
    border-bottom: none;
}

#order-standard_cart .suggested-domains .domain {
    font-weight: 500;
}

#order-standard_cart .suggested-domains .extension {
    color: var(--store-primary);
    font-weight: 700;
}

#order-standard_cart .suggested-domains .price {
    color: var(--store-success);
    font-weight: 600;
}

#order-standard_cart .suggested-domains .btn-add-to-cart {
    background: var(--store-success) !important;
    color: white !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    border-radius: 6px !important;
    font-size: 0.75rem !important;
}

/* Transfer Eligible/Not Eligible */
#order-standard_cart .transfer-eligible {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    color: var(--store-text);
    margin: 1rem 0;
}

#order-standard_cart .transfer-not-eligible {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    color: var(--store-text);
    margin: 1rem 0;
}

/* Alerts */
#order-standard_cart .alert {
    border-radius: 10px !important;
    border: none !important;
    padding: 1rem 1.25rem !important;
}

#order-standard_cart .alert-danger {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
}

#order-standard_cart .alert-success {
    background: rgba(34, 197, 94, 0.15) !important;
    color: #4ade80 !important;
}

#order-standard_cart .alert-info {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important;
}

#order-standard_cart .alert-warning {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #fbbf24 !important;
}

/* Sidebar Styling for Other Pages */
#order-standard_cart .cart-sidebar .panel,
#order-standard_cart .cart-sidebar .card {
    background: var(--store-surface);
    border: 1px solid var(--store-border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

#order-standard_cart .cart-sidebar .panel-heading,
#order-standard_cart .cart-sidebar .card-header {
    background: linear-gradient(135deg, var(--store-primary) 0%, #8b5cf6 100%);
    border-bottom: none;
    padding: 0.875rem 1rem;
}

#order-standard_cart .cart-sidebar .panel-heading h3,
#order-standard_cart .cart-sidebar .card-header h3 {
    color: white !important;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#order-standard_cart .cart-sidebar .panel-heading i,
#order-standard_cart .cart-sidebar .card-header i {
    color: white !important;
}

#order-standard_cart .cart-sidebar .list-group-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--store-border);
    padding: 0.75rem 1rem;
    color: var(--store-text-secondary);
    font-size: 0.875rem;
}

#order-standard_cart .cart-sidebar .list-group-item:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--store-primary);
}

#order-standard_cart .cart-sidebar .list-group-item.active {
    background: rgba(59, 130, 246, 0.15);
    color: var(--store-primary);
    font-weight: 600;
}

/* General Labels */
#order-standard_cart label {
    color: var(--store-text-secondary);
    font-weight: 500;
}

/* Hidden Class */
#order-standard_cart .w-hidden {
    display: none !important;
}