/*
 * Custom styles for the modern product page.
 * This file consolidates the inline CSS from the provided design example into a separate stylesheet.
 */

:root {
    --primary-color: #d32f2f;
    --primary-dark: #b71c1c;
    --secondary-bg: #f3f5f9;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --success-color: #10b981;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-hover: 0 10px 25px rgba(211, 47, 47, 0.15);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--secondary-bg);
    color: var(--text-dark);
}
h1, h2, h3, h4, h5, .logo-text, .btn {
    font-family: 'Poppins', sans-serif;
}
a {
    text-decoration: none;
    transition: 0.3s;
}

/* Header styling */
.top-navbar {
    background: white;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -1px;
}
.logo-text span {
    color: var(--primary-color);
}
.search-container {
    position: relative;
}
.search-input {
    border-radius: 50px;
    background: var(--secondary-bg);
    border: none;
    padding: 12px 20px;
    padding-right: 50px;
}
.search-input:focus {
    background: white;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}
.search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.nav-actions .action-btn {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-left: 20px;
    position: relative;
}
.badge-cart {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--primary-color);
    font-size: 0.7rem;
    padding: 3px 6px;
}

/* Breadcrumbs */
.breadcrumb-nav {
    padding: 20px 0;
}
.breadcrumb-item a {
    color: var(--text-gray);
    font-size: 0.9rem;
}
.breadcrumb-item.active {
    color: var(--text-dark);
    font-weight: 600;
}

/* Product card layout */
.product-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}
.product-image-container {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: var(--radius-md);
}
.product-title {
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 10px;
}
.price-tag {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}
.price-info {
    font-size: 0.9rem;
    color: var(--text-gray);
}
.stock-badge {
    background-color: #ecfdf5;
    color: var(--success-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 20px;
}

/* Buttons */
.btn-main {
    background: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border-radius: var(--radius-md);
    font-weight: 600;
    border: none;
    width: 100%;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
    transition: all 0.3s ease;
}
.btn-main:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: white;
}
.btn-outline {
    background: white;
    border: 2px solid #e2e8f0;
    color: var(--text-dark);
    padding: 15px;
    border-radius: var(--radius-md);
    font-weight: 600;
    width: 100%;
    transition: all 0.3s;
}
.btn-outline:hover {
    border-color: var(--text-dark);
    background: var(--text-dark);
    color: white;
}

/* Feature icons */
.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8fafc;
    padding: 15px;
    border-radius: var(--radius-md);
    height: 100%;
}
.feature-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Bundle section */
.bundle-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-top: 30px;
    border: 1px solid #e2e8f0;
}
.plus-sign {
    color: var(--primary-color);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tabs */
.custom-tabs .nav-link {
    color: var(--text-gray);
    font-weight: 600;
    border: none;
    border-bottom: 3px solid transparent;
    padding-bottom: 15px;
    margin-right: 20px;
}
.custom-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: none;
}

/* Footer styling */
footer {
    background-color: #111827;
    color: #9ca3af;
    padding-top: 60px;
    margin-top: 60px;
}
footer h6 {
    color: white;
    margin-bottom: 20px;
}
footer a {
    color: #9ca3af;
    text-decoration: none;
}
footer a:hover {
    color: white;
}

.input-qty {
    max-width: 120px;
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.input-qty button {
    background: none;
    border: none;
    padding: 10px;
    color: var(--text-dark);
    font-weight: bold;
}
.input-qty input {
    border: none;
    text-align: center;
    width: 100%;
    font-weight: bold;
}
