:root {
    --color-primary: #0066cc;
    --color-primary-dark: #004bb5;
    --color-secondary: #059669;
    --color-gradient: linear-gradient(135deg, #0066cc 0%, #059669 100%);
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-surface-light: #f1f5f9;
    --color-text: #0f172a;
    --color-text-muted: #64748b;
    --color-success: #059669;
    --color-warning: #f59e0b;
    
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

header {
    background-color: var(--color-surface);
    padding: 1.25rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background-color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand span {
    color: var(--color-primary);
}

.hero {
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--color-primary), #ffa502);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.hero p {
    color: var(--color-text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background: linear-gradient(45deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-fast);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.4);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--color-surface);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-fast);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    background-color: var(--color-surface-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.placeholder-img {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.placeholder-img.large {
    font-size: 1.5rem;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-surface-light);
    border-radius: 16px;
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-title a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    display: block;
}

.product-title a:hover {
    color: var(--color-primary-dark);
}

.product-price {
    margin-top: auto;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.regular-price {
    color: var(--color-text-muted);
    text-decoration: line-through;
    font-size: 0.9rem;
}

.offer-price {
    color: var(--color-success);
    font-size: 1.3rem;
    font-weight: 700;
}

/* Product Details Page */
.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background-color: var(--color-surface);
    padding: 2rem;
    border-radius: 20px;
}

@media (max-width: 768px) {
    .product-details {
        grid-template-columns: 1fr;
    }
}

.product-gallery img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.product-info-full {
    display: flex;
    flex-direction: column;
}

.product-title.large {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.product-sku {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.product-price.large {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.product-description {
    color: var(--color-text);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.add-to-cart-wrapper {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.quantity-input {
    width: 80px;
    padding: 0.8rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--color-surface-light);
    background-color: var(--color-bg);
    color: var(--color-text);
    font-size: 1rem;
    font-family: var(--font-sans);
}

.safety-info {
    background-color: rgba(255, 71, 87, 0.1);
    border-left: 4px solid var(--color-primary);
    padding: 1.5rem;
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
}

.safety-info strong {
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.5rem;
}

/* Rich Page Layouts (CMS/Contact/Safety) */
.page-header {
    background: linear-gradient(135deg, #1e1b4b, #311042);
    padding: 3.5rem 0;
    text-align: center;
    border-radius: var(--border-radius-md);
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-md);
}

.page-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.card {
    background-color: var(--color-surface);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Custom Interactive Forms styling */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--color-surface-light);
    background-color: var(--color-bg);
    color: var(--color-text);
    font-size: 0.95rem;
    font-family: var(--font-sans);
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.2);
}

/* Safety Guideline Box details */
.alert-box {
    background-color: #fffbeb;
    color: #451a03;
    border-left: 4px solid #d97706;
    padding: 1.25rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.5rem;
}

.alert-box h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.alert-box ul {
    margin: 0;
    padding-left: 1.25rem;
}

/* Dynamic Navbar link details */
nav a {
    position: relative;
    padding: 0.25rem 0;
    transition: var(--transition-fast);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-fast);
}

nav a:hover::after {
    width: 100%;
}


/* Quote buttons show the current quantity after selection. */
.add-to-quote.is-added { background: #059669 !important; color: #fff !important; border-color: #047857 !important; }
.add-to-quote.is-added:hover { background: #047857 !important; }
.shop-card .add-to-quote.is-added { box-shadow: 0 4px 12px rgba(5,150,105,.25); }

