/*
Theme Name: Rosalynn
Theme URI: https://lanurserie.com
Description: A modern, modular WordPress theme with Elementor and WooCommerce integration. Scalable architecture for e-commerce websites with advanced features.
Author: Lanurserie
Author URI: https://lanurserie.com
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rosalynn
Tags: e-commerce, elementor, woocommerce, blank, custom-colors, custom-menu, custom-logo, editor-style, featured-images, flexible-header, full-width-template, one-column, two-columns, rtl-language-support, theme-options, threaded-comments, translation-ready

Rosalynn is a modern WordPress theme designed for e-commerce websites.
Built with scalability in mind, it features a modular architecture with
PSR-4 autoloading, seamless Elementor integration, and custom WooCommerce
templates including a Shopify-style cart.
*/

/* ==========================================================================
   Global Styles
   ========================================================================== */

/**
 * Accessibility
 */
:focus {
    outline: 2px solid #333;
    outline-offset: 2px;
}

/**
 * Typography
 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #FEFBF4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/**
 * Links
 */
a {
    color: #333;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover,
a:focus {
    opacity: 0.7;
}

/**
 * Images
 */
img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/**
 * Buttons
 */
button,
.button,
input[type="submit"],
input[type="button"] {
    padding: 12px 24px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}



/**
 * Forms
 */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
textarea,
select {
    padding: 10px 15px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
    max-width: 100%;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #333;
}

/**
 * Utilities
 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

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

/**
 * Container
 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/**
 * Responsive
 */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

/* ==========================================================================
   Rosalynn Cart Shortcode Styles (v2 from user)
   ========================================================================== */

.product-card {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
    gap: 20px;
}

.product-card:last-child {
    border-bottom: none;
}

.product-image {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.product-details {
    flex: 1;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.product-header a {
    color: #000;
    text-decoration: none;
}
.product-header a:hover {
    opacity: 0.8;
}

.product-title {
    font-size: 20px; /* Reduced from 24px to better fit cart context */
    font-weight: 600;
    color: #000;
}

.product-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.product-price {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end; /* Align price to the right */
}

/* Styling for WooCommerce default price output */
.product-price del {
    font-size: 16px; /* Adjusted from 18px */
    color: #999;
    text-decoration: line-through;
}

.product-price del .woocommerce-Price-amount {
    color: #999;
}

.product-price ins {
    font-size: 16px; /* Adjusted from 18px */
    color: #0066cc;
    font-weight: 600;
    text-decoration: none;
}
.product-price ins .woocommerce-Price-amount {
    color: #0066cc;
}


.delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.delete-btn:hover {
    opacity: 0.7;
}

.delete-icon {
    width: 22px; /* Adjusted from 24px */
    height: 22px; /* Adjusted from 24px */
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 6px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    color: #333; /* Ensure color is set */
    padding: 0;
}

.qty-btn:hover {
    background-color: #f5f5f5;
}

.qty-input {
    width: 45px;
    height: 28px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    padding: 5px; /* Adjust padding */
}

.subscription-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px; /* Adjusted from 15px */
    margin-top: 15px;
}

.subscription-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.subscription-text .wc-subscription-summary {
    display: flex;
    flex-direction: column;
}
