/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f7f7f7; 
    color: #333;
    line-height: 1.5;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 80vh;
    padding: 20px 40px;
}

/* ================== Header ոճավորում ================== */
header {
    background-color: #fff;
    padding-top: 15px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.logo-area {
    display: flex;
    align-items: center;
}

.logo-img {
    /* Պետք է ունենաք images/logo.png */
    width: 50px; 
    height: 50px;
    margin-right: 10px;
}

.logo-area h1 {
    font-size: 28px;
    color: #000;
    font-weight: normal;
}

.logo-area .pharm-text {
    color: #4CAF50; /* Հիմնական կանաչ գույն */
    font-weight: bold;
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin-right: 20px;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-weight: 500;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover, .main-nav a.active {
    color: #4CAF50;
    border-bottom: 2px solid #4CAF50;
    font-weight: bold;
}

.cart-icon img {
    /* Պետք է ունենաք images/cart.png */
    width: 35px; 
    height: auto;
}

.header-divider {
    height: 3px;
    background-color: #4CAF50; 
    margin-top: 15px;
}

/* ================== Products ոճավորում ================== */

.category-title {
    margin-top: 20px;
    font-size: 24px;
    font-weight: normal;
    text-align: left;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Երկու սյունակ */
    gap: 40px;
    padding: 40px 0;
}

.product-card {
    text-align: center;
    padding: 20px;
}

.product-image {
    max-width: 250px; 
    height: auto;
    margin-bottom: 15px;
}

.product-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.product-description {
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-price {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.add-to-cart-btn {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.add-to-cart-btn:hover {
    background-color: #000;
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 40px;
}

.page-btn {
    background-color: #333;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    padding: 0;
    line-height: 40px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
}

.page-btn.active {
    background-color: #4CAF50; /* Ակտիվ էջի կանաչ գույն */
}


/* ================== Cart ոճավորում (ՈՒՂՂՎԱԾ) ================== */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.cart-table th, .cart-table td {
    padding: 15px 0;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.cart-table thead th {
    font-weight: normal; 
    font-size: 18px;
    color: #555;
}

/* ՈՒՂՂՎԱԾ ԼԱՅՆՈՒԹՅՈՒՆՆԵՐԸ՝ 5 ՍՅՈՒՆԱԿԻ ՀԱՄԱՐ (առանց նկարի) */
.quantity-col { width: 15%; }
.item-col { width: 40%; } 
.price-col { width: 15%; }
.subtotal-col { width: 15%; }
.remove-col { width: 15%; text-align: right;} 


.quantity-input {
    width: 50px;
    padding: 5px;
    text-align: center;
    border: 1px solid #ccc;
}

/* Ընդհանուր գումարի ցուցադրում (ՈՒՂՂՎԱԾ) */
.cart-total {
    text-align: right;
    margin-top: 20px;
    font-size: 20px;
    font-weight: bold;
    /* Ապահովում է ճիշտ հավասարեցում remove-col-ի աջ եզրին */
    padding-right: 15%; 
}

.cart-total span {
    color: #333;
    margin-left: 15px;
}

/* Կոճակների դասավորություն (ՈՒՂՂՎԱԾ) */
.cart-buttons {
    display: flex;
    justify-content: flex-end; /* Տեղափոխում է կոճակները աջ անկյուն */
    width: 100%; /* Ապահովում է, որ զբաղեցնի ամբողջ լայնությունը */
    margin-top: 30px;
    gap: 15px;
    /* Ապահովում է, որ կոճակները չանցնեն աջ սահմանը, հավասարեցնելով Total-ին */
    padding-right: 15%; 
}


.continue-shopping-btn, .checkout-btn, .remove-btn {
    text-decoration: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    border-radius: 5px; 
    transition: background-color 0.3s;
}

.continue-shopping-btn {
    background-color: #f0f0f0; 
    color: #333;
    border: 1px solid #ddd;
}

.checkout-btn {
    background-color: #333; 
    color: #fff;
    border: none;
}

.remove-btn {
    background-color: #333;
    color: #fff;
    font-size: 12px;
}

.remove-btn:hover, .continue-shopping-btn:hover, .checkout-btn:hover {
    background-color: #000;
}


/* ================== Checkout ոճավորում ================== */
.checkout-form {
    max-width: 500px; 
    margin: 50px auto 100px auto;
    padding: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    box-sizing: border-box; 
    font-size: 16px;
}

.group-inline {
    display: flex;
    gap: 20px;
}

.group-inline .inline-item {
    flex: 1;
}

.complete-order-btn {
    width: 100%;
    background-color: #333;
    color: #fff;
    padding: 15px 0;
    margin-top: 30px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.complete-order-btn:hover {
    background-color: #000;
}
/* ================== Homepage (index.php) ոճավորում ================== */

.homepage-content {
    padding-bottom: 50px;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 0;
    gap: 40px;
}

.hero-text {
    flex: 1;
    max-width: 50%;
}

.hero-text h2 {
    font-size: 48px;
    color: #333;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
}

.shop-now-btn {
    display: inline-block;
    background-color: #4CAF50; /* Կանաչ կոճակ */
    color: #fff;
    text-decoration: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.shop-now-btn:hover {
    background-color: #3e8e41;
}

.hero-image-container {
    flex: 1;
    text-align: right;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Category Showcase */
.category-showcase {
    text-align: center;
    margin-top: 50px;
}

.category-showcase h3 {
    font-size: 30px;
    margin-bottom: 40px;
    font-weight: normal;
}

.category-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.category-card {
    flex: 1;
    text-decoration: none;
    color: #333;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.card-icon {
    display: block;
    font-size: 40px;
    margin-bottom: 15px;
}

.category-card h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.category-card p {
    font-size: 14px;
    color: #777;
}

/* Կատեգորիայի քարտերի գունային շեշտադրում */
.medicine-card { border-top: 5px solid #E74C3C; }
.cosmetic-card { border-top: 5px solid #3498DB; }
.ortho-card { border-top: 5px solid #2ECC71; }