/* Roo Florals CSS */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lato:wght@300;400;500;600&display=swap');

:root {
    --blush-pink: #F4C2C7;
    --sage-green: #A8BCA1;
    --ivory: #F8F4E6;
    --coral: #E48E80;
    --dark-green: #7A8A73;
    --text-dark: #2C3E2D;
    --text-light: #6B7B6E;
}

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

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--ivory);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

/* Header */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.logo {
    height: 80px;
    order: 2;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    order: 3;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.cart-icon {
    background: var(--coral);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    transition: background 0.3s ease;
    order: 4;
}

.cart-icon:hover {
    background: var(--dark-green);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem;
    order: 1;
}

.mobile-menu-toggle:hover {
    color: var(--coral);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--blush-pink) 0%, var(--ivory) 100%);
    padding: 4rem 5%;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.btn-primary {
    background: var(--coral);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
}

/* Products Grid */
.products-section {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

/* Container for the "Add to Cart" button inside product cards.  This
   provides consistent padding and centers the button at the bottom of the
   card, keeping the layout clean whether the card appears on the home
   page or the products listing page. */
.add-to-cart-container {
    padding: 0 1.5rem 1.5rem;
    text-align: center;
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
    text-align: center;
}

.product-name {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.1rem;
    color: var(--coral);
    font-weight: 600;
    margin-bottom: 1rem;
}

.btn-secondary {
    background: var(--sage-green);
    color: white;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-secondary:hover {
    background: var(--dark-green);
}

/* ----------------------------------------------------------------------
 * Pop-up notification styling
 * These styles define a modal overlay used for success, error and other
 * messages.  The overlay covers the entire viewport with a semi-
 * transparent backdrop.  The content container is centered, with
 * distinct styling for success and error messages.
 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.popup-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.popup-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.popup-icon.success {
    color: var(--dark-green);
}
.popup-icon.error {
    color: var(--coral);
}

.popup-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Cart Page */
.cart-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.cart-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 1rem;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: var(--coral);
    font-weight: 600;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 1rem;
}

.quantity-btn {
    background: var(--sage-green);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
}

.remove-btn {
    background: var(--coral);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
}

.cart-summary {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.promo-code {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.promo-input {
    flex: 1;
    padding: 0.7rem;
    border: 2px solid var(--sage-green);
    border-radius: 5px;
}

/* Checkout Form */
.checkout-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.checkout-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--sage-green);
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--coral);
}

/* Footer */
.footer {
    background: var(--sage-green);
    color: white;
    text-align: center;
    padding: 3rem 5%;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--coral);
}

/* Admin Panel */
.admin-sidebar {
    width: 220px;
    background: var(--sage-green);
    color: white;
    padding: 1.5rem 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.admin-sidebar h3 {
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0 1rem;
}

.admin-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-nav li {
    margin: 0;
}

.admin-nav a {
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    border-radius: 0;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 0.9rem;
}

.admin-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: white;
}

.admin-nav a.active {
    background: rgba(255, 255, 255, 0.15);
    border-left-color: var(--coral);
}

.admin-nav i {
    margin-right: 0.8rem;
    width: 16px;
    text-align: center;
    font-size: 0.9rem;
}

.admin-content {
    flex: 1;
    margin-left: 220px;
    padding: 2rem;
    background: var(--ivory);
    overflow-x: auto;
}

.admin-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-table-container {
    overflow-x: auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-table {
    width: 100%;
    min-width: 600px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}

.admin-table th {
    background: var(--sage-green);
    color: white;
    position: sticky;
    top: 0;
}

/* Mobile Admin Sidebar Toggle */
.admin-mobile-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: var(--sage-green);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
}

.admin-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.admin-sidebar.mobile-open {
    transform: translateX(0);
}

.admin-mobile-overlay.active {
    display: block;
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-new {
    background: var(--coral);
    color: white;
}

.status-shipped {
    background: var(--sage-green);
    color: white;
}

.status-delivered {
    background: #4CAF50;
    color: white;
}

.status-canceled {
    background: #f44336;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Header Mobile Styles */
    .navbar {
        flex-wrap: wrap;
        padding: 1rem 3%;
        justify-content: space-between;
    }
    
    .logo {
        height: 60px;
        order: 2;
        margin: 0 auto;
    }
    
    .mobile-menu-toggle {
        display: block;
        order: 1;
    }
    
    .cart-icon {
        order: 3;
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        background: white;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem 3%;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        gap: 0;
        order: 4;
    }
    
    .nav-links.mobile-open {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }
    
    .nav-links a {
        padding: 1rem 0;
        display: block;
        width: 100%;
    }
    
    /* Hero Section Mobile */
    .hero {
        padding: 3rem 3%;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    /* Products Grid Mobile */
    .products-section {
        padding: 3rem 3%;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Cart Mobile */
    .cart-container {
        padding: 0 1rem;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cart-item img {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .quantity-controls {
        margin: 0.5rem 0;
    }
    
    /* Checkout Mobile */
    .checkout-container {
        padding: 0 1rem;
    }
    
    /* Admin Panel Mobile */
    .admin-mobile-toggle {
        display: block;
    }
    
    .admin-container {
        position: relative;
    }
    
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1000;
        transform: translateX(-100%);
        width: 250px;
    }
    
    .admin-sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .admin-content {
        margin-left: 0;
        padding: 4rem 1rem 2rem;
        width: 100%;
    }
    
    .admin-header {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    /* Product Detail Mobile */
    .product-detail-section {
        padding: 2rem 3%;
    }
    
    .product-detail-container {
        flex-direction: column;
    }
    
    .product-images,
    .product-details-info {
        flex: 1 1 100%;
    }
    
    .product-detail-name {
        font-size: 1.5rem;
    }
    
    .product-detail-price {
        font-size: 1.3rem;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 2rem 3%;
    }
    
    .footer-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .navbar {
        padding: 0.8rem 2%;
    }
    
    .logo {
        height: 50px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn-primary {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .admin-sidebar {
        width: 260px;
    }
    
    .admin-content {
        padding: 4rem 0.5rem 1rem;
    }
    
    .product-detail-name {
        font-size: 1.3rem;
    }
    
    .product-detail-price {
        font-size: 1.2rem;
    }
}

/* Loading and Empty States */
.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.empty-cart h3 {
    margin-bottom: 1rem;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

/* Success Messages */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border: 1px solid #f5c6cb;
}

/* -------------------------------------------------------------------------- */
/* Product Detail Page Styles */
/*
   These styles define the layout for the individual product page. The
   design follows the existing color palette and typography to maintain
   a consistent brand identity. The page is split into two columns on
   larger screens: the left column displays the product images (with a
   main image and thumbnails), and the right column displays the
   product name, price, description, and an Add to Cart button.
*/

.product-detail-section {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.product-detail-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

.product-images {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-images .main-image {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-images .thumbnail-row {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.product-images .thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-images .thumbnail:hover {
    transform: scale(1.05);
}

.product-details-info {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-detail-name {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.product-detail-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--coral);
    margin-bottom: 1rem;
}

.product-detail-description {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    white-space: pre-line;
}


/* Dashboard Stats Cards */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.stat-card i {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(168, 188, 161, 0.1);
    color: var(--sage-green);
}

.stat-card:nth-child(1) i {
    background: rgba(228, 142, 128, 0.1);
    color: var(--coral);
}

.stat-card:nth-child(2) i {
    background: rgba(168, 188, 161, 0.1);
    color: var(--sage-green);
}

.stat-card:nth-child(3) i {
    background: rgba(244, 194, 199, 0.1);
    color: var(--blush-pink);
}

.stat-card:nth-child(4) i {
    background: rgba(122, 138, 115, 0.1);
    color: var(--dark-green);
}

.stat-info h3 {
    font-size: 2rem;
    margin: 0;
    color: var(--text-dark);
    font-weight: 700;
}

.stat-info p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Mobile responsive for dashboard stats */
@media (max-width: 1024px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .stat-card i {
        font-size: 2rem;
        width: 50px;
        height: 50px;
    }
    
    .stat-info h3 {
        font-size: 1.5rem;
    }
    
    .stat-info p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
    }
}

