/* style.css */
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; padding: 0; background-color: #f4f5f7; }

header { background-color: #ffffff; box-shadow: 0 2px 8px rgba(0,0,0,0.1); padding: 15px 30px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1000; }
.logo-section { cursor: pointer; }
.logo-text { font-size: 28px; font-weight: 900; color: #d82b2b; margin: 0; }
.tagline { font-size: 13px; color: #555; font-style: italic; }

.top-nav { display: flex; gap: 15px; }
.top-nav a { text-decoration: none; color: #333; font-weight: bold; padding: 8px 15px; border-radius: 5px; transition: 0.3s; }
.top-nav a:hover { background: #d82b2b; color: white; }

.cart-section { position: relative; cursor: pointer; font-size: 18px; font-weight: bold; }
.cart-count-badge { position: absolute; top: -10px; right: -15px; background-color: #d82b2b; color: white; font-size: 12px; border-radius: 50%; padding: 3px 8px; }

.container { max-width: 1100px; margin: 20px auto; padding: 20px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 25px; margin-top: 20px;}
.product-card { background: white; padding: 15px; border-radius: 12px; box-shadow: 0 4px 8px rgba(0,0,0,0.08); text-align: center; cursor: pointer; transition: 0.3s; }
.product-card:hover { transform: translateY(-5px); border: 1px solid #d82b2b; }
.product-card img { width: 100%; height: 220px; object-fit: cover; border-radius: 8px; }
.product-card h3 { margin: 15px 0 5px; font-size: 17px; color: #333; }
.product-card p { color: #28a745; font-size: 20px; font-weight: bold; }

.details-flex { display: flex; flex-wrap: wrap; gap: 30px; background: white; padding: 30px; border-radius: 10px; }
.main-product-image { width: 100%; max-width: 450px; height: 400px; object-fit: cover; border-radius: 10px; border: 1px solid #ddd; }
.thumbnail-gallery { display: flex; gap: 10px; margin-top: 15px; overflow-x: auto; }
.thumbnail-gallery img { width: 70px; height: 70px; object-fit: cover; border-radius: 5px; border: 2px solid transparent; cursor: pointer; opacity: 0.6; transition: 0.3s;}
.thumbnail-gallery img:hover, .thumbnail-gallery img.active-thumb { opacity: 1; border-color: #d82b2b; }
.details-info { flex: 1; min-width: 300px; }

.add-to-cart-btn { background-color: #d82b2b; color: white; border: none; padding: 15px; width: 100%; font-size: 18px; cursor: pointer; border-radius: 5px; margin-top: 20px;}
.add-to-cart-btn-small { background-color: #333; color: white; border: none; padding: 12px; width: 100%; cursor: pointer; border-radius: 6px; font-weight: bold; font-size: 15px; margin-top: 10px; transition: 0.3s; }
.add-to-cart-btn-small:hover { background-color: #d82b2b; }

.product-options { background: #f9f9f9; padding: 10px; border-radius: 6px; margin-bottom: 10px; text-align: left; font-size: 13px; }
.opt-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.opt-row select, .opt-row input { padding: 4px; border: 1px solid #ccc; border-radius: 4px; width: 60%; font-size: 13px; outline: none; }
.opt-row input { width: 50px; text-align: center; }

.detail-options { display: flex; flex-direction: column; gap: 15px; margin-bottom: 20px; background: #f8f9fa; padding: 15px; border-radius: 8px; border: 1px solid #eee; }
.detail-opt-row { display: flex; align-items: center; justify-content: space-between; font-size: 16px; font-weight: bold; }
.detail-opt-row select, .detail-opt-row input { padding: 8px; font-size: 15px; border: 1px solid #ccc; border-radius: 5px; width: 60%; }
.detail-opt-row input { width: 80px; text-align: center; }

.magic-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    white-space: pre-wrap; 
    font-family: inherit;
}
