/* * Front Page Landing Styles
 * Theme: Woocom QuillGPL Digital Seller
 */

/* =========================================
   1. HERO SECTION
   ========================================= */
.quill-hero {
    position: relative;
    padding: 100px 0;
    background-color: #f0fdfc; /* Light Teal Tint */
    overflow: hidden;
    margin-bottom: 60px;
}

.quill-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.05; /* Subtle background pattern */
    z-index: 1;
}

.quill-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

/* Left Content */
.hero-left {
    flex: 1;
    max-width: 600px;
}

.hero-kicker {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0ea5a4;
    margin-bottom: 15px;
    background: rgba(14, 165, 164, 0.1);
    padding: 5px 12px;
    border-radius: 50px;
}

.hero-title {
    font-family: Georgia, serif; /* Elegant serif for headings */
    font-size: 56px;
    line-height: 1.1;
    color: #0f172a;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 18px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 35px;
}

/* Buttons */
.hero-ctas {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: #0ea5a4;
    color: #fff;
    border: 2px solid #0ea5a4;
    box-shadow: 0 4px 12px rgba(14, 165, 164, 0.3);
}

.btn-primary:hover {
    background-color: #0d9494;
    border-color: #0d9494;
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #0ea5a4;
    border: 2px solid #0ea5a4;
}

.btn-outline:hover {
    background: #0ea5a4;
    color: #fff;
}

/* Right Image */
.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-right img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* =========================================
   2. CATEGORIES GRID (Browse by Type)
   ========================================= */
.quill-section-head {
    text-align: center;
    margin-bottom: 50px;
}

.quill-section-head h2 {
    font-size: 32px;
    font-family: Georgia, serif;
    color: #1e293b;
    margin-bottom: 10px;
}

.quill-cats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: #0ea5a4;
}

.cat-media img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 15px;
}

.cat-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.cat-body p {
    color: #64748b;
    margin-top: 5px;
}

/* =========================================
   3. PROMO BAR (Trust Signals)
   ========================================= */
.quill-promo {
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    padding: 30px 0;
    margin-bottom: 60px;
}

.promo-inner {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.promo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.promo-item strong {
    font-size: 15px;
    color: #1e293b;
    margin-bottom: 4px;
}

.promo-item span {
    font-size: 13px;
    color: #64748b;
}

/* =========================================
   4. PRODUCT TABS
   ========================================= */
.quill-browse {
    text-align: center;
    margin-bottom: 40px;
}

.tabs-row {
    display: inline-block;
    border-bottom: 2px solid #e2e8f0;
}

.tabs {
    display: flex;
    gap: 0;
}

.tab {
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    color: #94a3b8;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.tab:hover {
    color: #0ea5a4;
}

.tab.active {
    color: #0ea5a4;
    border-bottom-color: #0ea5a4;
}

/* =========================================
   5. RESPONSIVE MEDIA QUERIES
   ========================================= */
@media (max-width: 1024px) {
    .quill-cats-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    }
    
    .hero-title {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .quill-hero-inner {
        flex-direction: column;
        text-align: center;
        padding-top: 20px;
    }

    .hero-left {
        order: 2; /* Image on top? or text on top? usually image top on mobile, but text first for SEO/UX */
        order: 1; 
    }
    
    .hero-right {
        order: 2;
        margin-top: 30px;
    }

    .hero-ctas {
        justify-content: center;
    }

    .promo-inner {
        flex-direction: column;
        gap: 30px;
    }
    
    .tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .quill-cats-grid {
        grid-template-columns: 1fr; /* 1 column on phone */
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .btn {
        width: 100%; /* Full width buttons */
    }
    
    .hero-ctas {
        flex-direction: column;
    }
}

/* =========================================
   PRODUCT CARD DESIGN (Global)
   ========================================= */

/* 1. Grid Layout Reset */
ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    margin: 0 0 50px 0;
    padding: 0;
    list-style: none outside;
}

/* 2. Card Container */
ul.products li.product {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    padding: 0; /* Remove default padding to let image fill top */
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

/* Hover Effect: Lift & Shadow */
ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: #dbeafe;
}

/* 3. Product Image Area */
.quill-card-media {
    position: relative;
    background: #f8fafc;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.quill-card-media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Zoom Image on Hover */
ul.products li.product:hover .quill-card-media img {
    transform: scale(1.05);
}

/* Sale Badge */
.onsale {
    position: absolute;
    top: 15px;
    left: 15px;
    right: auto;
    margin: 0;
    background: #0ea5a4; /* Brand Teal */
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 5;
    box-shadow: 0 4px 6px rgba(14, 165, 164, 0.2);
}

/* 4. Product Content (Title & Price) */
.quill-card-content {
    padding: 20px;
    flex-grow: 1; /* Pushes buttons to bottom */
    display: flex;
    flex-direction: column;
}

.woocommerce-loop-product__title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1e293b;
    margin-bottom: 8px !important;
    line-height: 1.4 !important;
    min-height: 44px; /* Ensures alignment for 2-line titles */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #0ea5a4 !important; /* Brand Teal */
    margin-top: auto; /* Pushes price to bottom of content area */
    display: block;
}

.price del {
    color: #94a3b8;
    font-weight: 400;
    font-size: 14px;
    margin-right: 8px;
    opacity: 0.7;
}

/* 5. Action Buttons (The "Add to Cart" & "Buy Now") */
.quill-card-actions {
    padding: 0 20px 20px 20px;
    display: flex;
    gap: 10px;
    margin-top: auto;
}

/* Base Button Style */
.quill-card-actions .button {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    line-height: 1;
}

/* "Add to Cart" - Solid Teal */
.add_to_cart_button {
    background-color: #0ea5a4 !important;
    color: #fff !important;
}

.add_to_cart_button:hover {
    background-color: #0b8c8b !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(14, 165, 164, 0.25);
}

/* "Buy Now" - Solid Green (or different shade) */
.buy-now-button {
    background-color: #10b981 !important; /* Emerald Green */
    color: #fff !important;
}

.buy-now-button:hover {
    background-color: #059669 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.25);
}

/* Loading State */
.button.loading {
    opacity: 0.7;
    cursor: wait;
}

/* =========================================
   6. MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {
    ul.products {
        grid-template-columns: repeat(2, 1fr); /* 2 Columns on Tablet */
        gap: 15px;
    }
    
    .quill-card-media {
        height: 160px;
    }
    
    .woocommerce-loop-product__title {
        font-size: 14px !important;
    }
    
    .quill-card-actions {
        flex-direction: column; /* Stack buttons on smaller screens if needed */
        gap: 8px;
    }
}

@media (max-width: 480px) {
    ul.products {
        grid-template-columns: 1fr; /* 1 Column on Phone */
    }
}