/**
 * FILE: /var/www/html/assets/css/product-pages.css
 * DESCRIPTION: Shared styles for product pages (KVM, LXC, Dedicated)
 */

/* Cart */
.cart-icon {
    cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 8px 16px;
    background: var(--bg-raised);
    border: 1px solid var(--border); border-radius: var(--radius-md); transition: all 0.2s ease;
}
.cart-icon:hover {
    background: var(--accent-dim) !important;
    border-color: var(--accent);
}

/* Page Sections */
.service-header {
    padding: 110px 20px 80px; text-align: center;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
}
.service-header h1 { font-size: 3rem; color: var(--text-primary); margin-bottom: 20px; font-weight: 700; }
.service-header p { font-size: 1.2rem; max-width: 800px; margin: 0 auto 30px; color: var(--text-secondary); }

/* Billing Toggle */
.billing-toggle {
    display: flex; justify-content: center; gap: 4px; margin: 30px auto;
    background: var(--bg-raised); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 5px; max-width: 700px; flex-wrap: wrap;
}
.billing-option {
    padding: 9px 18px; background: transparent;
    border: none; border-radius: 20px;
    cursor: pointer; transition: all 0.2s ease;
    color: var(--text-secondary); font-size: 0.9rem;
    position: relative; white-space: nowrap;
}
.billing-option.active {
    background: var(--accent);
    color: #ffffff; font-weight: 600;
}
.billing-option:hover:not(.active) { background: var(--accent-dim); color: var(--text-primary); }
.billing-option .save-badge {
    display: inline-block; font-size: 0.7rem; font-weight: 700;
    color: var(--success); margin-left: 4px; vertical-align: super;
}
.billing-option.active .save-badge { color: #a7f3d0; }

/* Products */
.products-container { max-width: 1400px; margin: 60px auto; padding: 0 20px; }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.product-card {
    background: var(--bg-raised);
    border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px;
    transition: border-color 0.2s ease, transform 0.2s ease; position: relative; overflow: hidden;
}
.product-card.featured { border-color: var(--accent); }
.product-card.featured::before {
    content: 'FEATURED'; position: absolute; top: 20px; right: -30px;
    background: var(--accent); color: #ffffff;
    padding: 5px 40px; transform: rotate(45deg); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.05em;
}
.product-card.upgrades-card {
    background: var(--bg-raised);
    border-color: rgba(139, 92, 246, 0.3);
}
.product-card.upgrades-card::before {
    content: 'UPGRADES'; background: #7c3aed; color: #fff;
}
.product-card.upgrades-card:hover { transform: translateY(-4px); border-color: rgba(139, 92, 246, 0.5); }
.product-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.product-card h3 { color: var(--text-primary); font-size: 1.6rem; margin-bottom: 12px; font-weight: 700; }
.product-card.upgrades-card h3 { color: #a78bfa; }
.product-price {
    font-size: 2.4rem;
    color: var(--text-primary);
    font-weight: bold;
    margin: 18px 0;
    line-height: 1;
    white-space: nowrap;
    display: block;
}
.product-price * { display: inline; white-space: nowrap; }
.product-price .price-amount { display: inline; }
.product-price .cycle {
    font-size: 1rem;
    color: var(--text-muted);
    display: inline; white-space: nowrap;
}
.product-description { color: var(--text-secondary); margin-bottom: 18px; min-height: 40px; }
.product-specs { list-style: none; margin: 20px 0; padding: 0; }
.product-specs li {
    padding: 9px 0; border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between;
}
.product-specs li:last-child { border-bottom: none; }
.spec-label { color: var(--text-secondary); }
.spec-value { color: var(--accent); font-weight: 600; }
.upgrades-card .spec-value { color: #a78bfa; }
.product-features { list-style: none; margin: 18px 0; padding: 0; }
.product-features li { padding: 7px 0; padding-left: 22px; position: relative; color: var(--text-secondary); }
.product-features li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: bold; }
.upgrades-card .product-features li::before { content: '+'; color: #a78bfa; }

/* Stock Badges */
.stock-badge { display: inline-block; padding: 4px 12px; border-radius: var(--radius-sm); font-size: 0.8rem; margin: 8px 0; font-weight: 600; }
.in-stock { background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.3); color: var(--success); }
.limited-stock { background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.3); color: var(--warning); }
.out-of-stock { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.3); color: var(--danger); }

/* Buttons */
.add-to-cart-btn {
    width: 100%; padding: 13px; background: var(--accent);
    border: none; border-radius: var(--radius-md); color: #ffffff; font-weight: 600; font-size: 1rem;
    cursor: pointer; transition: background 0.2s ease; margin-top: 18px;
}
.add-to-cart-btn:hover { background: var(--accent-hover); }
.add-to-cart-btn:disabled { background: var(--bg-elevated); color: var(--text-muted); cursor: not-allowed; }

/* Upgrades */
.upgrades-info {
    background: rgba(139, 92, 246, 0.08); border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-sm); padding: 14px; margin-top: 18px; text-align: center;
}
.upgrades-info p { margin: 0; font-size: 0.9rem; color: var(--text-secondary); }

/* Floating Cart */
.cart-float {
    position: fixed; bottom: 100px; right: 30px;
    background: var(--accent); color: #ffffff;
    padding: 13px 22px; border-radius: var(--radius-md);
    cursor: pointer; font-weight: 600; z-index: 999; transition: background 0.2s ease;
}
.cart-float:hover { background: var(--accent-hover); }
.cart-count {
    background: rgba(255,255,255,0.2); color: #ffffff; padding: 3px 8px;
    border-radius: 10px; margin-left: 8px; font-size: 0.85rem;
}

/* Dedicated Servers */
.dedicated-hero {
    padding: 150px 20px 80px; text-align: center;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
}
.dedicated-hero h1 { font-size: 3.5rem; color: var(--text-primary); margin-bottom: 20px; font-weight: 800; }
.dedicated-hero .subtitle { font-size: 1.3rem; max-width: 900px; margin: 0 auto 40px; color: var(--text-secondary); line-height: 1.8; }
.hero-stats { display: flex; justify-content: center; gap: 60px; margin-top: 50px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat-number { font-size: 3rem; color: var(--accent); font-weight: bold; display: block; }
.hero-stat-label { color: var(--text-secondary); font-size: 1rem; margin-top: 8px; }
.dedicated-container { max-width: 1600px; margin: 0 auto; padding: 60px 20px; }
.lineup-section { margin-bottom: 80px; }
.lineup-header { text-align: center; margin-bottom: 50px; }
.lineup-title {
    font-size: 2.2rem; color: var(--text-primary); margin-bottom: 15px;
    text-transform: uppercase; letter-spacing: 1px; font-weight: 700;
}
.lineup-subtitle { font-size: 1.1rem; color: var(--text-secondary); max-width: 800px; margin: 0 auto; }

/* Server Table */
.server-table-wrapper {
    background: var(--bg-raised);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden;
}
.server-table { width: 100%; border-collapse: collapse; }
.server-table thead { background: var(--bg-elevated); }
.server-table th {
    padding: 18px 15px; text-align: left; font-weight: 600; color: var(--text-secondary); font-size: 0.85rem;
    border-bottom: 1px solid var(--border); text-transform: uppercase; letter-spacing: 0.05em;
}
.server-table tbody tr { border-bottom: 1px solid var(--border); transition: background 0.15s ease; }
.server-table tbody tr:hover { background: var(--accent-dim); }
.server-table tbody tr.featured { background: var(--accent-dim); border-left: 3px solid var(--accent); }
.server-table td { padding: 22px 15px; vertical-align: middle; }
.server-name { font-size: 1.2rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.server-name .featured-badge {
    background: var(--accent); color: #ffffff;
    padding: 2px 10px; border-radius: 10px; font-size: 0.7rem;
    margin-left: 10px; font-weight: 700; letter-spacing: 0.05em;
}
.server-name .lease-badge {
    background: var(--warning); color: #000;
    padding: 2px 10px; border-radius: 10px; font-size: 0.7rem;
    margin-left: 10px; font-weight: 700; letter-spacing: 0.05em;
}
.spec-detail { color: var(--text-secondary); line-height: 1.8; font-size: 0.9rem; }
.spec-highlight { color: var(--accent); font-weight: 600; }
.price-cell { text-align: center; }
.price-cell .price-amount {
    font-size: 2rem; color: var(--text-primary); font-weight: bold; display: block;
}
.price-cycle { color: var(--text-muted); font-size: 0.9rem; display: block; margin-top: 4px; }
.action-cell { text-align: center; }
.order-btn {
    background: var(--accent); color: #ffffff;
    padding: 10px 24px; border: none; border-radius: var(--radius-md); font-weight: 600; font-size: 0.95rem;
    cursor: pointer; transition: background 0.2s ease;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.order-btn:hover { background: var(--accent-hover); }
.order-btn:disabled { background: var(--bg-elevated); color: var(--text-muted); cursor: not-allowed; }
.stock-indicator {
    display: inline-block; padding: 3px 10px; border-radius: 10px;
    font-size: 0.8rem; margin-top: 6px; font-weight: 600;
}

/* Benefits & Features */
.benefits-section {
    margin: 80px 0; background: var(--bg-raised);
    border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 60px 40px;
}
.benefits-section h2 {
    text-align: center; font-size: 2.2rem; color: var(--text-primary); margin-bottom: 16px;
    text-transform: uppercase; letter-spacing: 1px; font-weight: 700;
}
.benefits-section .section-subtitle { text-align: center; font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 50px; }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; justify-items: center; }
.benefits-grid .benefit-card { width: 100%; max-width: 400px; }
.benefit-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 28px; transition: border-color 0.2s ease;
}
.benefit-card:hover { border-color: var(--border-strong); }
.benefit-icon { font-size: 2rem; margin-bottom: 14px; }
.benefit-title { color: var(--accent); font-size: 1.2rem; margin-bottom: 12px; font-weight: 600; }
.benefit-description { color: var(--text-secondary); line-height: 1.7; font-size: 0.97rem; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 60px 0; }
.feature-card {
    background: var(--bg-raised);
    border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px; transition: border-color 0.2s ease;
}
.feature-card:hover { border-color: var(--border-strong); }
.feature-icon { font-size: 2rem; margin-bottom: 14px; }
.feature-title { color: var(--accent); font-size: 1.1rem; margin-bottom: 12px; font-weight: 600; }
.feature-description { color: var(--text-secondary); line-height: 1.7; font-size: 0.95rem; }

/* CTA Section */
.cta-section {
    background: var(--accent-dim);
    border: 1px solid var(--border-focus); border-radius: var(--radius-lg);
    padding: 60px 40px; text-align: center; margin: 80px 0;
}
.cta-section h2 { font-size: 2.2rem; color: var(--text-primary); margin-bottom: 16px; font-weight: 700; }
.cta-section p {
    font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 30px;
    max-width: 800px; margin-left: auto; margin-right: auto;
}
.cta-button {
    display: inline-block; background: var(--accent); color: #ffffff;
    padding: 14px 40px; border-radius: var(--radius-md); text-decoration: none; font-weight: 600; font-size: 1.1rem;
    transition: background 0.2s ease;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.cta-button:hover { background: var(--accent-hover); }

/* Responsive */
@media (max-width: 1200px) {

    .server-table-wrapper { overflow-x: auto; }
    .server-table { min-width: 900px; }
    .benefits-grid, .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .login-btn { padding: 4px 10px !important; }
    .service-header h1, .dedicated-hero h1 { font-size: 2.2rem; }
    .service-header p, .dedicated-hero .subtitle { font-size: 1rem; }
    .hero-stats { gap: 30px; }
    .hero-stat-number { font-size: 2rem; }
    .lineup-title { font-size: 1.6rem; }
    .products-grid { grid-template-columns: 1fr; }
    .server-table th, .server-table td { padding: 14px 10px; font-size: 0.85rem; }
    .server-name { font-size: 1rem; }
    .price-amount { font-size: 1.6rem !important; }
    .benefits-grid, .features-grid { grid-template-columns: 1fr; }
    .billing-toggle { gap: 3px; padding: 4px; }
    .billing-option { padding: 7px 10px; font-size: 0.8rem; }
}
