/* ==================================================
   VYALA SILK SAREES - Premium White Theme Stylesheet
   ================================================== */

:root {
    --primary-dark: #131921;
    /* Amazon Dark Navy Color */
    --accent-gold: #ffa41c;
    /* Gold/Orange highlight color */
    --text-dark: #333333;
    /* Dark core typography */
    --text-light: #666666;
    /* Neutral text details */
    --bg-pure-white: #ffffff;
    /* Requested Pure White Background */
    --bg-off-white: #f7f9fa;
    /* Contrast Section backgrounds */
    --border-color: #e7e7e7;
    /* Clean subtle grid separators */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-pure-white);
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-dark);
    font-weight: 800;
}

/* Announcement Header Banner */
.top-banner {
    background-color: rgb(235, 77, 235);
    color: white;
    text-align: center;
    padding: 10px 15px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Main Navigation Header layout */
.header {
    background-color: rgb(235, 77, 235);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 5%;
    gap: 20px;
}

/* Unique Stylish 'V' Logo Branding CSS */
.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo-v-box {
    background: linear-gradient(135deg, #ffa41c 0%, #ffcc00 100%);
    color: #131921;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 900;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    border: 2px solid #ffffff;
    transform: rotate(-3deg);
    transition: transform 0.2s ease;
}

.logo-section:hover .logo-v-box {
    transform: rotate(0deg) scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    letter-spacing: 2px;
    line-height: 1;
}

.logo-sub {
    font-size: 0.65rem;
    color: black;
    font-weight: 700;
    letter-spacing: 4px;
    margin-top: 4px;
}

/* Search Bar Component Area */
.search-bar {
    display: flex;
    flex: 1;
    max-width: 600px;
}

.search-bar input {
    width: 100%;
    padding: 11px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 0.9rem;
    outline: none;
}

.search-btn {
    background-color: var(--accent-gold);
    border: none;
    padding: 0 22px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-dark);
}

.action-btn {
    background: #ffd814;
    border: 0 !important;
    color: var(--primary-dark);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

/* Sub-category selection tab container */
.category-nav {
    background-color: rgb(235, 77, 235);
    display: flex;
    gap: 15px;
    padding: 8px 5%;
    overflow-x: auto;
}

.cat-btn {
    background: none;
    border: none;
    color: #ffffff;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s;
}

.cat-btn.active,
.cat-btn:hover {
    color: black;
}

/* Core application dimensions setup */
.main-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.section-title {
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-left: 4px solid var(--accent-gold);
    padding-left: 10px;
}

/* Amazon Clean Card Design Structure rules */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.product-card {
    background: var(--bg-pure-white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.2s ease;
}

.product-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.product-img-wrap {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 12px;
}

.product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #0f1111;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
    margin-bottom: 5px;
}

.rating-row {
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.stars {
    color: #febd69;
}

.review-count {
    color: #007185;
    margin-left: 5px;
}

.price-section {
    margin-bottom: 12px;
}

.price-current {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f1111;
}

.price-original {
    font-size: 0.85rem;
    color: #565959;
    text-decoration: line-through;
    margin-left: 5px;
}

.price-savings {
    font-size: 0.85rem;
    color: #b12704;
    font-weight: 600;
    margin-left: 5px;
}

/* Card Action Button rules */
.card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-actions button {
    width: 100%;
    padding: 9px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid;
}

.btn-add-cart {
    background-color: #ffd814;
    border-color: #fcd200;
    color: #0f1111;
}

.btn-add-cart:hover,.action-btn:hover {
    background-color: #f7ca00;
}

.btn-buy-now {
    background-color: #ffa41c;
    border-color: #ff9900;
    color: #0f1111;
}

.btn-buy-now:hover {
    background-color: #f59200;
}

/* About Us Section Layout */
.about-section {
    background-color: var(--bg-off-white);
    padding: 40px;
    border-radius: 8px;
    margin: 50px 0;
    border: 1px solid var(--border-color);
    text-align: center;
}

.about-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.about-tagline {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: #880e4f;
    margin-bottom: 20px;
    font-weight: 600;
}

.about-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
    max-width: 900px;
    margin: 0 auto;
}

/* Contact Block & Feedback Form Split Layout rules */
.contact-feedback-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin: 50px 0;
}

.contact-info-block,
.feedback-form-block {
    background-color: var(--bg-pure-white);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 8px;
}

.contact-info-block h2,
.feedback-form-block h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.contact-sub {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 22px;
    align-items: flex-start;
}

.info-icon {
    font-size: 1.4rem;
    background: var(--bg-off-white);
    padding: 8px;
    border-radius: 50%;
    line-height: 1;
}

/* Interactive Feedback Form Styles */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--primary-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-gold);
}

.btn-submit-feedback {
    background-color: #25d366;
    color: #ffffff;
    border: none;
    width: 100%;
    padding: 13px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

.btn-submit-feedback:hover {
    background-color: #128c7e;
}

/* Sliding Side Panel Drawer for Cart Utilities */
.cart-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100%;
    background-color: var(--bg-pure-white);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-panel.open {
    right: 0;
}

.cart-panel-header {
    padding: 20px;
    background-color: var(--primary-dark);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.3rem;
    cursor: pointer;
}

.cart-items-list {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item {
    display: flex;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.cart-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.cart-item-price {
    font-size: 0.9rem;
    color: #b12704;
    font-weight: 700;
    margin-top: 2px;
}

.cart-panel-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-off-white);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.checkout-btn {
    width: 100%;
    background-color: var(--accent-gold);
    border: 1px solid #ff9900;
    padding: 12px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
}

/* Modal Address Form Popup Overlays */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.open {
    display: flex;
}

.modal-box {
    background-color: var(--bg-pure-white);
    padding: 30px;
    border-radius: 8px;
    width: 100%;
    max-width: 550px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

.form-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.order-submit-btn {
    width: 100%;
    background-color: #ffa41c;
    border: 1px solid #ff9900;
    padding: 13px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
}

/* Global Footer Layout rules */
.footer {
    background-color: var(--primary-dark);
    color: #aaaaaa;
    text-align: center;
    padding: 22px;
    font-size: 0.85rem;
    margin-top: 50px;
}

/* System Feedback Floating Toast Notification style */
.toast {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #333333;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 4px;
    display: none;
    z-index: 3000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    font-size: 0.9rem;
}