/* Global Styles */
:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #334155;
    background-color: #ffffff;
}

/* Header Styles */
.top-bar {
    font-size: 0.875rem;
}

/* Policy pages: modern, colorful and accessible */
.policy-hero {
    background: linear-gradient(135deg, rgba(124,58,237,0.95) 0%, rgba(6,182,212,0.95) 100%);
    color: #fff;
    padding: 64px 0;
    border-radius: 12px;
    margin-bottom: 28px;
    position: relative;
    overflow: visible;
}
/* boxed header that holds the heading and lead */
.policy-header-box {
    display: block;
    max-width: 980px;
    margin: 0 auto;
    padding: 12px 8px; /* reduced padding to sit more naturally on the hero */
    border-radius: 6px;
    background: transparent; /* transparent so hero gradient shows through */
    box-shadow: none;
    border: none;
    text-align: left;
    transform: translateZ(0);
} 
.policy-header-box .display-4 {
    margin: 0;
    font-weight: 700;
    font-size: clamp(1.6rem, 3.0vw, 2.6rem);
    line-height: 1.05;
    color: #fff;
    text-shadow: 0 4px 18px rgba(7,12,25,0.12);
    letter-spacing: -0.2px;
    display: flex;
    align-items: center;
    gap: 12px;
} 
.policy-header-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06); /* subtle translucent background */
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: none;
    flex-shrink: 0;
} 
.policy-header-icon {
    color: #7c3aed;
    font-size: 22px;
    transition: transform .28s cubic-bezier(.2,.9,.3,1);
}
.policy-header-decor {
    width: 72px;
    height: 8px;
    border-radius: 6px;
    background: rgba(255,255,255,0.18); /* subtle translucent bar */
    margin-left: 8px;
    box-shadow: none;
} 
.policy-header-box .lead { color: rgba(255,255,255,0.95); margin-top: 8px; margin-bottom: 0; }
.policy-header-box .last-updated { color: rgba(255,255,255,0.9); margin-top: 8px; font-weight: 600; }

.policy-header-box:hover .policy-header-icon { transform: rotate(12deg) scale(1.06); }

.policy-hero::after {
    content: '';
    position: absolute;
    width: 240px;
    height: 240px;
    right: 16px;
    bottom: -40px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.12), rgba(255,255,255,0) 40%);
    filter: blur(36px);
    transform: rotate(12deg);
    z-index: 0;
}

.policy-content { max-width: 920px; margin: 24px auto 40px; }
.policy-card {
    background: linear-gradient(180deg,#ffffff,#fbfdff);
    padding: 1.6rem;
    border-radius: 16px;
    box-shadow: 0 18px 60px rgba(2,6,23,0.06);
    border: 1px solid rgba(2,6,23,0.04);
    counter-reset: section;
}
.policy-section {
    padding: 1.2rem 1rem;
    margin-bottom: 14px;
    border-radius: 10px;
    position: relative;
    transition: transform .22s cubic-bezier(.2,.9,.3,1), box-shadow .22s ease;
}
.policy-section:hover { transform: translateY(-6px); box-shadow: 0 22px 60px rgba(2,6,23,0.10); }

/* section badge using CSS counters */
.policy-section h3 {
    font-weight: 700;
    margin-bottom: .6rem;
    position: relative;
    padding-left: 0.6rem;
    background: linear-gradient(90deg,#7c3aed,#06b6d4,#ffb703);
    -webkit-background-clip: text;
    color: transparent;
}
.policy-section h3::before {
    counter-increment: section;
    content: counter(section);
    position: absolute;
    left: -58px;
    top: -2px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg,#ff7a59,#7c3aed,#06b6d4);
    box-shadow: 0 8px 22px rgba(124,58,237,0.12);
}

.policy-section p, .policy-section li { color: #1f2937; line-height: 1.8; }
.policy-list { list-style: decimal inside; margin-left: 0.5rem; }

/* colorful emphasis text */
.policy-section strong {
    background: linear-gradient(90deg,#ff7a59,#7c3aed,#06b6d4);
    -webkit-background-clip: text;
    color: transparent;
    font-weight: 700;
    transition: transform .16s ease, filter .16s ease;
}
.policy-section strong:hover { transform: translateY(-2px); filter: drop-shadow(0 6px 18px rgba(124,58,237,0.12)); }

/* links */
.policy-links a, .policy-section a { color: #7c3aed; text-decoration: none; transition: color .18s ease, transform .12s ease, text-shadow .12s ease; }
.policy-links a:hover, .policy-section a:hover { color: #ff7a59; transform: translateX(4px); text-shadow: 0 6px 18px rgba(255,122,89,0.06); }

/* subtle reveal animation */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.policy-card, .policy-section { animation: fadeUp .5s ease both; }

/* responsive tweaks */
@media (max-width: 767px) {
    .policy-hero::after { right: -40px; width: 180px; height: 180px; }
    .policy-section h3::before { left: -48px; width: 38px; height: 38px; }
    .policy-header-box { padding: 16px; border-radius: 12px; }
    .policy-header-box .display-4 { font-size: 1.35rem; }
}


.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Product Cards */
.product-card {
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

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

.product-image {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--danger-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 24px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-2px);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Price Styles */
.original-price {
    text-decoration: line-through;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.discount-price {
    color: var(--danger-color);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Form Styles */
.form-control {
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Cart Styles */
.cart-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 0;
}

.cart-item:last-child {
    border-bottom: none;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    margin: 0 5px;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
    padding: 16px 20px;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Responsive Images */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Section Spacing */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

#new-address-form {
    transition: all 0.3s ease;
}
