/* 
   Piyaoo Copper - Premium Stylesheet
   Theme: Ayurvedic + Modern Hydration Lifestyle
   Aesthetic: Glassmorphism, Clean, Minimalist
*/

:root {
    /* Color Palette */
    --copper: #b87333;
    --copper-dark: #8c5523;
    --copper-light: #e09551;
    --aqua: #00b4d8;
    --aqua-light: #caf0f8;
    --white: #ffffff;
    --beige: #fdfbf7;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --glass-backdrop: blur(12px);

    /* Transitions & Spacing */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius: 16px;
    --section-pad: 40px 0 20px 0;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: var(--beige);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.text-center {
    text-align: center;
}

.section-padding {
    padding: var(--section-pad);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--copper);
    margin-bottom: 12px;
    font-weight: 600;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Glassmorphism Utility */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--copper);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(184, 115, 51, 0.3);
}

.btn-primary:hover {
    background: var(--copper-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 115, 51, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--copper);
    color: var(--copper);
}

.btn-secondary.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: var(--copper);
    color: var(--white);
    transform: translateY(-2px);
}

.w-100 {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 24px 0;
}

.navbar.scrolled {
    padding: 16px 0;
    background: rgba(253, 251, 247, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--copper);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--copper);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-btn {
    background: none;
    border: none;
    position: relative;
    cursor: pointer;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.cart-btn:hover {
    color: var(--copper);
    transform: scale(1.05);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--copper);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background-image: url('../assets/images/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(253, 251, 247, 0.9) 0%, rgba(253, 251, 247, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    animation: fadeUp 1s ease-out;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 300;
}

.hero h1 .highlight {
    font-weight: 700;
    color: var(--copper);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-content: start;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition);
    border-radius: 8px;
    border: 1px solid #eaeaea;
    background: #fff;
}

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

.product-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8f8f8;
    overflow: hidden;
}

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

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

.product-details {
    padding: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-details h3 {
    font-size: 1.15rem;
    font-weight: 500;
    color: #888;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-desc {
    display: none;
}

/* --- Rating Badge --- */
.rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.rating-pill {
    background-color: #03a685;
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.rating-pill svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.rating-reviews {
    color: #888;
    font-size: 0.95rem;
}

.product-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: auto;
    gap: 12px;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.product-footer .btn {
    width: 100%;
    padding: 10px;
    font-size: 1.05rem;
    border-radius: 4px;
}

/* Layout standard */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-layout.reverse {
    direction: ltr; /* Handled in flex via media query if needed */
}

/* Benefits */
.benefits-image-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.benefits-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.glass-badge {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    box-shadow: var(--glass-shadow);
    color: var(--text-dark);
}

.benefits-content h2 {
    font-size: 2.5rem;
    color: var(--copper);
    margin-bottom: 20px;
}

.benefits-intro {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.benefits-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.list-icon {
    font-size: 2rem;
    background: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.list-text strong {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 5px;
}

.list-text p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    padding: 40px;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.pricing-card.featured {
    border: 2px solid var(--copper);
    transform: scale(1.05);
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--copper);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-header {
    margin-bottom: 30px;
}

.pricing-header h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.price-val {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: var(--copper);
}

.currency {
    font-size: 1.5rem;
    vertical-align: super;
}

.period {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
}

.pricing-features {
    text-align: left;
    margin-bottom: 40px;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
    color: var(--text-dark);
}

.pricing-features li:last-child {
    border: none;
}

.pricing-features li::before {
    content: '✓';
    color: var(--aqua);
    font-weight: bold;
    margin-right: 10px;
}

/* About Us */
.about {
    background: url('../assets/images/hero_bg.png') no-step;
    /* reusing hero backbg but with custom gradient mask */
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--beige);
    opacity: 0.95;
}

.about-content {
    position: relative;
    padding: 80px 40px;
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
}

.about-content h2 {
    color: var(--copper);
    margin-bottom: 24px;
    font-size: 2.2rem;
}

.large-text {
    font-size: 1.25rem;
    line-height: 1.8;
}

/* Contact Section */
.contact-form-wrapper {
    padding: 40px;
}

.contact-form-wrapper h2 {
    font-size: 2rem;
    color: var(--copper);
    margin-bottom: 10px;
}

.contact-form-wrapper > p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    background: rgba(255,255,255,0.8);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--copper);
    box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.1);
}

.map-placeholder {
    height: 100%;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(45deg, var(--aqua-light), var(--glass-bg));
}

.map-content .map-pin {
    stroke: var(--copper);
    margin-bottom: 15px;
}

.map-content h3 {
    margin-bottom: 5px;
}

.map-content p {
    color: var(--text-light);
}

/* Footer */
.footer {
    padding: 30px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Floating WhatsApp */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.floating-wa:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Toasts */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--text-dark);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: slideInLeft 0.3s ease forwards;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Responsive */
@media (max-width: 992px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--glass-bg);
        backdrop-filter: var(--glass-backdrop);
        flex-direction: column;
        padding: 20px 0;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero {
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .section-pad {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .floating-wa {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* --- Slider Styles --- */
.slider-wrapper {
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
    text-align: center;
}

.slider-wrapper::-webkit-scrollbar {
    height: 8px;
}

.slider-wrapper::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
}

.slider-wrapper::-webkit-scrollbar-thumb {
    background: var(--copper);
    border-radius: 10px;
}

.products-slider {
    display: inline-flex;
    gap: 15px;
    padding: 10px;
}

.slider-card {
    min-width: 260px;
    max-width: 260px;
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* --- Checkout Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 1;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-content {
    background: var(--beige);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border-radius: 20px;
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0; /* padding handled inside layout */
}

.modal-overlay.hidden .modal-content {
    transform: translateY(50px);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--copper);
}

.modal-header {
    text-align: center;
    padding: 40px 20px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.modal-header h2 {
    color: var(--copper);
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    min-height: 400px;
}

.order-summary {
    background: rgba(255,255,255,0.5);
    padding: 40px;
    border-right: 1px solid rgba(0,0,0,0.05);
}

.cart-items {
    margin: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 20px;
    max-height: 200px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.item-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.item-info p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.order-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
}

.payment-form-section {
    padding: 40px;
    position: relative;
}

.split-inputs {
    display: flex;
    gap: 15px;
}

.split-inputs .form-group {
    flex: 1;
}

.mt-4 { margin-top: 24px; }

.payment-success {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--beige);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    z-index: 5;
    border-radius: 0 20px 20px 0;
}

.payment-success.hidden {
    display: none;
}

.success-icon {
    width: 80px; height: 80px;
    background: rgba(184, 115, 51, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }
    .order-summary {
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    .payment-success {
        border-radius: 20px;
    }
}
