/**
 * HNG Commerce - Estilos de E-commerce para Tema Revista Laticínios
 *
 * @package Revista_Laticinios
 */

/* ==========================================================================
   VARIABLES & COMMON
   ========================================================================== */
:root {
    --hng-primary: var(--primary-color, #2563eb);
    --hng-primary-dark: var(--primary-dark, #1e40af);
    --hng-secondary: var(--secondary-color, #0ea5e9);
    --hng-accent: var(--accent-color, #f59e0b);
    --hng-success: var(--success-color, #10b981);
    --hng-warning: var(--warning-color, #f59e0b);
    --hng-danger: #ef4444;
    --hng-text: var(--text-color, #1f2937);
    --hng-text-light: var(--text-light, #6b7280);
    --hng-bg: var(--bg-color, #ffffff);
    --hng-bg-light: var(--bg-light, #f9fafb);
    --hng-bg-gray: var(--bg-gray, #f3f4f6);
    --hng-border: var(--border-color, #e5e7eb);
    --hng-radius: 8px;
    --hng-radius-lg: 12px;
    --hng-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --hng-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    font-size: 0.875rem;
    color: var(--hng-text-light);
}

.breadcrumb a {
    color: var(--hng-primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    color: var(--hng-border);
}

.breadcrumb .current {
    color: var(--hng-text);
    font-weight: 500;
}

/* ==========================================================================
   PAGE HEADERS
   ========================================================================== */
.page-header {
    text-align: center;
    padding: 2rem 0 1.5rem;
    margin-bottom: 2rem;
}

.page-header .page-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 2rem;
    color: var(--hng-text);
}

.page-header .page-title svg {
    color: var(--hng-primary);
}

.page-header .page-description {
    max-width: 600px;
    margin: 1rem auto 0;
    color: var(--hng-text-light);
    line-height: 1.6;
}

/* ==========================================================================
   CHECKOUT PROGRESS
   ========================================================================== */
.checkout-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto 2rem;
    padding: 1.5rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.progress-step .step-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--hng-bg-gray);
    color: var(--hng-text-light);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.progress-step.active .step-number,
.progress-step.completed .step-number {
    background: var(--hng-primary);
    color: white;
}

.progress-step.completed .step-number {
    background: var(--hng-success);
}

.progress-step .step-label {
    font-size: 0.75rem;
    color: var(--hng-text-light);
    font-weight: 500;
}

.progress-step.active .step-label {
    color: var(--hng-primary);
}

.progress-line {
    flex: 1;
    height: 3px;
    background: var(--hng-bg-gray);
    margin: 0 0.5rem;
}

.progress-line.active,
.progress-line.completed {
    background: var(--hng-primary);
}

/* ==========================================================================
   SHOP PAGE
   ========================================================================== */
.hng-shop-page {
    padding-bottom: 4rem;
}

.shop-header {
    border-bottom: 1px solid var(--hng-border);
    padding-bottom: 1.5rem;
}

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--hng-border);
}

.filter-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--hng-border);
    border-radius: var(--hng-radius);
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-toggle:hover {
    border-color: var(--hng-primary);
    color: var(--hng-primary);
}

.shop-view-options {
    display: flex;
    gap: 0.5rem;
}

.shop-view-options button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--hng-border);
    border-radius: var(--hng-radius);
    background: white;
    cursor: pointer;
    color: var(--hng-text-light);
    transition: all 0.2s ease;
}

.shop-view-options button:hover,
.shop-view-options button.active {
    border-color: var(--hng-primary);
    color: var(--hng-primary);
    background: rgba(37, 99, 235, 0.05);
}

/* Products Grid */
.hng-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.hng-product-card {
    background: white;
    border: 1px solid var(--hng-border);
    border-radius: var(--hng-radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.hng-product-card:hover {
    box-shadow: var(--hng-shadow-lg);
    transform: translateY(-4px);
}

.hng-product-card .product-image {
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.hng-product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hng-product-card:hover .product-image img {
    transform: scale(1.05);
}

.hng-product-card .product-info {
    padding: 1.25rem;
}

.hng-product-card .product-title {
    font-size: 1rem;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.hng-product-card .product-title a {
    color: var(--hng-text);
    text-decoration: none;
}

.hng-product-card .product-title a:hover {
    color: var(--hng-primary);
}

.hng-product-card .product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--hng-primary);
    margin: 0 0 1rem;
}

/* Product Actions - Center button */
.hng-product-card .product-actions,
.product-actions {
    padding: 0 1.25rem 1.25rem;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
}

.hng-product-card .product-actions .btn,
.product-actions .btn {
    display: inline-block !important;
    margin: 0 auto !important;
}

/* No Products */
.no-products {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--hng-bg-light);
    border-radius: var(--hng-radius-lg);
}

.no-products svg {
    color: var(--hng-text-light);
    margin-bottom: 1rem;
}

.no-products h3 {
    margin-bottom: 0.5rem;
}

.no-products p {
    color: var(--hng-text-light);
}

/* Shop Categories */
.shop-categories {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--hng-border);
}

.shop-categories h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
    background: white;
    border: 1px solid var(--hng-border);
    border-radius: var(--hng-radius-lg);
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-card:hover {
    border-color: var(--hng-primary);
    box-shadow: var(--hng-shadow);
    transform: translateY(-2px);
}

.category-card .category-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hng-bg-light);
    border-radius: 50%;
    margin-bottom: 1rem;
    color: var(--hng-primary);
}

.category-card h3 {
    font-size: 1rem;
    color: var(--hng-text);
    margin: 0;
}

/* ==========================================================================
   CART PAGE
   ========================================================================== */
.hng-cart-page {
    padding-bottom: 4rem;
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--hng-bg-light);
    border-radius: var(--hng-radius-lg);
}

.empty-cart svg {
    color: var(--hng-text-light);
    margin-bottom: 1.5rem;
}

.empty-cart h2 {
    margin-bottom: 0.5rem;
}

.empty-cart p {
    color: var(--hng-text-light);
    margin-bottom: 1.5rem;
}

.cart-upsell {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--hng-border);
}

.cart-upsell h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   CHECKOUT PAGE
   ========================================================================== */
.hng-checkout-page {
    padding-bottom: 4rem;
}

.security-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.security-badges .badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--hng-success);
}

.checkout-error {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--hng-bg-light);
    border-radius: var(--hng-radius-lg);
}

.checkout-error svg {
    color: var(--hng-warning);
    margin-bottom: 1rem;
}

.payment-methods-info {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--hng-bg-light);
    border-radius: var(--hng-radius-lg);
    text-align: center;
}

.payment-methods-info h4 {
    margin-bottom: 1rem;
    color: var(--hng-text);
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.payment-icon {
    width: 60px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--hng-border);
    border-radius: var(--hng-radius);
}

/* ==========================================================================
   ACCOUNT PAGE
   ========================================================================== */
.hng-account-page {
    padding-bottom: 4rem;
}

.account-header .welcome-message {
    color: var(--hng-text-light);
    margin-top: 0.5rem;
}

.account-dashboard {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.account-sidebar {
    background: white;
    border: 1px solid var(--hng-border);
    border-radius: var(--hng-radius-lg);
    padding: 1rem;
    height: fit-content;
}

.account-menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.account-menu .menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--hng-radius);
    color: var(--hng-text);
    text-decoration: none;
    transition: all 0.2s ease;
}

.account-menu .menu-item:hover {
    background: var(--hng-bg-light);
    color: var(--hng-primary);
}

.account-menu .menu-item.active {
    background: rgba(37, 99, 235, 0.1);
    color: var(--hng-primary);
}

.account-menu .menu-item.logout {
    color: var(--hng-danger);
    margin-top: 0.5rem;
    border-top: 1px solid var(--hng-border);
    padding-top: 1rem;
}

.account-menu .menu-item.logout:hover {
    background: rgba(239, 68, 68, 0.1);
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.dashboard-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--hng-border);
    border-radius: var(--hng-radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
}

.dashboard-card:hover {
    border-color: var(--hng-primary);
    box-shadow: var(--hng-shadow);
}

.dashboard-card .card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hng-bg-light);
    border-radius: var(--hng-radius);
    color: var(--hng-primary);
}

.dashboard-card .card-content h3 {
    font-size: 1rem;
    margin: 0 0 0.25rem;
}

.dashboard-card .card-content p {
    font-size: 0.875rem;
    color: var(--hng-text-light);
    margin: 0;
}

/* Login/Register */
.account-login-register {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.login-form-wrapper {
    padding: 2rem;
    background: white;
    border: 1px solid var(--hng-border);
    border-radius: var(--hng-radius-lg);
}

.login-form-wrapper h2 {
    margin-bottom: 1.5rem;
}

.login-form-wrapper input[type="text"],
.login-form-wrapper input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--hng-border);
    border-radius: var(--hng-radius);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.login-form-wrapper input[type="submit"] {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--hng-primary);
    color: white;
    border: none;
    border-radius: var(--hng-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.login-form-wrapper input[type="submit"]:hover {
    background: var(--hng-primary-dark);
}

.forgot-password {
    margin-top: 1rem;
    text-align: center;
}

.register-cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    background: var(--hng-bg-light);
    border-radius: var(--hng-radius-lg);
    text-align: center;
}

.register-cta h3 {
    margin-bottom: 0.5rem;
}

.register-cta p {
    color: var(--hng-text-light);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   SUBSCRIPTION PAGE
   ========================================================================== */
.hng-subscription-page {
    padding-bottom: 0;
}

.subscription-hero {
    background: linear-gradient(135deg, var(--hng-primary) 0%, var(--hng-primary-dark) 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.subscription-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-features .feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.hero-features svg {
    color: var(--hng-success);
}

/* Pricing Section */
.subscription-pricing {
    padding: 4rem 0;
    background: var(--hng-bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    background: white;
    border: 2px solid var(--hng-border);
    border-radius: var(--hng-radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    box-shadow: var(--hng-shadow-lg);
    transform: translateY(-4px);
}

.pricing-card.featured {
    border-color: var(--hng-primary);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.375rem 1rem;
    background: var(--hng-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 2rem;
    text-transform: uppercase;
}

.pricing-card .card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.pricing-card .card-description {
    color: var(--hng-text-light);
    font-size: 0.875rem;
}

.pricing-card .card-price {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--hng-border);
    margin-bottom: 1.5rem;
}

.pricing-card .currency {
    font-size: 1.25rem;
    vertical-align: top;
}

.pricing-card .amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--hng-text);
}

.pricing-card .period {
    color: var(--hng-text-light);
}

.pricing-card .card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    text-align: left;
}

.pricing-card .card-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.pricing-card .card-features svg {
    flex-shrink: 0;
    color: var(--hng-success);
    margin-top: 2px;
}

/* Benefits Section */
.subscription-benefits {
    padding: 4rem 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hng-bg-light);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    color: var(--hng-primary);
}

.benefit-card h3 {
    margin-bottom: 0.5rem;
}

.benefit-card p {
    color: var(--hng-text-light);
    font-size: 0.9rem;
}

/* Testimonials */
.subscription-testimonials {
    padding: 4rem 0;
    background: var(--hng-bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    background: white;
    padding: 2rem;
    border-radius: var(--hng-radius-lg);
    box-shadow: var(--hng-shadow);
}

.testimonial p {
    font-style: italic;
    color: var(--hng-text);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimonial footer {
    display: flex;
    flex-direction: column;
}

.testimonial strong {
    color: var(--hng-text);
}

.testimonial span {
    font-size: 0.875rem;
    color: var(--hng-text-light);
}

/* CTA Section */
.subscription-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--hng-primary) 0%, var(--hng-primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    color: white;
    margin-bottom: 0.5rem;
}

.cta-content>p {
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.cta-buttons .btn-outline {
    border-color: white;
    color: white;
}

.cta-buttons .btn-outline:hover {
    background: white;
    color: var(--hng-primary);
}

.cta-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0.9;
}

.cta-contact a {
    color: white;
    font-weight: 600;
}

/* ==========================================================================
   CONFIRMATION PAGE
   ========================================================================== */
.hng-confirmation-page {
    padding: 2rem 0 4rem;
}

.confirmation-success {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border: 1px solid var(--hng-border);
    border-radius: var(--hng-radius-lg);
}

.success-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    color: var(--hng-success);
}

.confirmation-success h1 {
    color: var(--hng-success);
    margin-bottom: 0.5rem;
}

.confirmation-message {
    color: var(--hng-text-light);
    max-width: 400px;
    margin: 0 auto 2rem;
}

.confirmation-details {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 2rem;
    background: var(--hng-bg-light);
    border-radius: var(--hng-radius);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.detail-item svg {
    color: var(--hng-primary);
}

.detail-item div {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.detail-item strong {
    font-size: 0.875rem;
    color: var(--hng-text);
}

.detail-item span {
    font-size: 0.8rem;
    color: var(--hng-text-light);
}

.confirmation-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Continue Shopping */
.continue-shopping {
    margin-top: 4rem;
    text-align: center;
}

.continue-shopping h3 {
    margin-bottom: 1.5rem;
}

.quick-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 2rem;
    background: white;
    border: 1px solid var(--hng-border);
    border-radius: var(--hng-radius-lg);
    text-decoration: none;
    color: var(--hng-text);
    transition: all 0.2s ease;
}

.quick-link:hover {
    border-color: var(--hng-primary);
    color: var(--hng-primary);
    box-shadow: var(--hng-shadow);
}

.quick-link svg {
    color: var(--hng-primary);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--hng-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--hng-primary);
    color: white;
    border-color: var(--hng-primary);
}

.btn-primary:hover {
    background: var(--hng-primary-dark);
    border-color: var(--hng-primary-dark);
    color: white;
}

.btn-secondary {
    background: var(--hng-bg-gray);
    color: var(--hng-text);
    border-color: var(--hng-bg-gray);
}

.btn-secondary:hover {
    background: var(--hng-border);
    border-color: var(--hng-border);
}

.btn-outline {
    background: transparent;
    color: var(--hng-primary);
    border-color: var(--hng-primary);
}

.btn-outline:hover {
    background: var(--hng-primary);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
    .account-dashboard {
        grid-template-columns: 1fr;
    }

    .account-sidebar {
        order: -1;
    }

    .account-menu {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .account-menu .menu-item.logout {
        margin-top: 0;
        border-top: none;
        padding-top: 0.75rem;
    }
}

@media (max-width: 768px) {
    .subscription-hero h1 {
        font-size: 1.75rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 0.75rem;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .account-login-register {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .checkout-progress {
        padding: 1rem 0;
    }

    .progress-step .step-label {
        display: none;
    }

    .security-badges {
        flex-direction: column;
        gap: 0.75rem;
    }

    .confirmation-details {
        flex-direction: column;
        gap: 1.5rem;
    }

    .quick-links {
        flex-direction: column;
        align-items: center;
    }

    .quick-link {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .page-header .page-title {
        font-size: 1.5rem;
    }

    .shop-toolbar {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .hng-products-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

/* ==========================================================================
   SINGLE PRODUCT PAGE
   ========================================================================== */
.hng-single-product {
    padding-bottom: 4rem;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Product Gallery */
.product-gallery {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.product-gallery .main-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--hng-radius-lg);
    overflow: hidden;
    background: var(--hng-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.product-gallery .main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery .main-image.no-image {
    color: var(--hng-text-light);
}

.gallery-thumbnails {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border: 2px solid var(--hng-border);
    border-radius: var(--hng-radius);
    overflow: hidden;
    cursor: pointer;
    background: none;
    padding: 0;
    transition: all 0.2s ease;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--hng-primary);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.product-info .product-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.product-info .product-sku {
    font-size: 0.875rem;
    color: var(--hng-text-light);
    margin-bottom: 1rem;
}

.product-price-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.product-price-box .price-old {
    font-size: 1.125rem;
    color: var(--hng-text-light);
    text-decoration: line-through;
}

.product-price-box .price-current {
    font-size: 2rem;
    font-weight: 700;
    color: var(--hng-primary);
}

.product-price-box .price-discount {
    padding: 0.25rem 0.5rem;
    background: var(--hng-danger);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
}

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: var(--hng-radius);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.stock-status.instock {
    background: rgba(16, 185, 129, 0.1);
    color: var(--hng-success);
}

.stock-status.outofstock {
    background: rgba(239, 68, 68, 0.1);
    color: var(--hng-danger);
}

.product-short-description {
    margin-bottom: 1.5rem;
    color: var(--hng-text-light);
    line-height: 1.7;
}

/* Add to Cart Form */
.add-to-cart-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--hng-bg-light);
    border-radius: var(--hng-radius-lg);
    margin-bottom: 1.5rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-selector label {
    font-weight: 500;
}

.quantity-input {
    display: flex;
    align-items: center;
    border: 1px solid var(--hng-border);
    border-radius: var(--hng-radius);
    overflow: hidden;
    background: white;
}

.quantity-input button {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--hng-text);
    transition: all 0.2s ease;
}

.quantity-input button:hover {
    background: var(--hng-bg-gray);
    color: var(--hng-primary);
}

.quantity-input input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    -moz-appearance: textfield;
}

.quantity-input input::-webkit-outer-spin-button,
.quantity-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.add-to-cart-form .btn {
    justify-content: center;
}

/* Product Meta */
.product-meta {
    padding: 1.5rem 0;
    border-top: 1px solid var(--hng-border);
    border-bottom: 1px solid var(--hng-border);
    margin-bottom: 1.5rem;
}

.product-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.product-meta .meta-item:last-child {
    margin-bottom: 0;
}

.product-meta a {
    color: var(--hng-primary);
}

.product-meta .subscription-info {
    color: var(--hng-accent);
}

.product-meta .subscription-info svg {
    color: var(--hng-accent);
}

/* Security Info */
.security-info {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.security-info .info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--hng-text-light);
}

.security-info .info-item svg {
    color: var(--hng-success);
}

/* Product Tabs */
.product-tabs {
    border: 1px solid var(--hng-border);
    border-radius: var(--hng-radius-lg);
    overflow: hidden;
    margin-bottom: 3rem;
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--hng-border);
    background: var(--hng-bg-light);
}

.tab-btn {
    padding: 1rem 1.5rem;
    border: none;
    background: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--hng-text-light);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.tab-btn:hover {
    color: var(--hng-text);
}

.tab-btn.active {
    color: var(--hng-primary);
    background: white;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--hng-primary);
}

.tabs-content {
    padding: 2rem;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.product-description {
    line-height: 1.8;
}

.product-description h2,
.product-description h3 {
    margin-top: 1.5rem;
}

.product-description ul,
.product-description ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.additional-info-table {
    width: 100%;
    border-collapse: collapse;
}

.additional-info-table th,
.additional-info-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--hng-border);
}

.additional-info-table th {
    width: 200px;
    font-weight: 500;
    background: var(--hng-bg-light);
}

/* Related Products */
.related-products {
    padding-top: 2rem;
    border-top: 1px solid var(--hng-border);
}

.related-products h3 {
    text-align: center;
    margin-bottom: 2rem;
}

/* Single Product Responsive */
@media (max-width: 992px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-gallery {
        position: static;
    }
}

@media (max-width: 768px) {
    .product-info .product-title {
        font-size: 1.5rem;
    }

    .product-price-box .price-current {
        font-size: 1.5rem;
    }

    .quantity-selector {
        flex-direction: column;
        align-items: flex-start;
    }

    .tabs-nav {
        flex-direction: column;
    }

    .tab-btn {
        border-bottom: 1px solid var(--hng-border);
    }

    .tab-btn:last-child {
        border-bottom: none;
    }

    .tab-btn.active::after {
        display: none;
    }

    .security-info {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .gallery-thumb {
        width: 60px;
        height: 60px;
    }

    .add-to-cart-form {
        padding: 1rem;
    }

    .tabs-content {
        padding: 1.5rem 1rem;
    }

    .additional-info-table th {
        width: 120px;
    }
}