frontend.css 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. .studiou-fpp-product {
  2. max-width: 800px;
  3. margin: 20px 0;
  4. font-family: inherit;
  5. }
  6. .studiou-fpp-product-header {
  7. display: flex;
  8. gap: 20px;
  9. margin-bottom: 30px;
  10. align-items: flex-start;
  11. }
  12. .studiou-fpp-product-image {
  13. flex: 0 0 200px;
  14. }
  15. .studiou-fpp-product-image img {
  16. max-width: 100%;
  17. height: auto;
  18. border-radius: 4px;
  19. }
  20. .studiou-fpp-product-info {
  21. flex: 1;
  22. }
  23. .studiou-fpp-product-title {
  24. margin: 0 0 10px;
  25. font-size: 1.6em;
  26. }
  27. .studiou-fpp-product-description {
  28. color: #555;
  29. line-height: 1.6;
  30. }
  31. .studiou-fpp-section {
  32. margin-bottom: 25px;
  33. }
  34. .studiou-fpp-section h3 {
  35. margin: 0 0 12px;
  36. font-size: 1.2em;
  37. border-bottom: 2px solid #eee;
  38. padding-bottom: 8px;
  39. }
  40. /* Variants table */
  41. .studiou-fpp-variants-table-wrap {
  42. overflow-x: auto;
  43. }
  44. .studiou-fpp-variants-table {
  45. width: 100%;
  46. border-collapse: collapse;
  47. border: 1px solid #ddd;
  48. }
  49. .studiou-fpp-variants-table th,
  50. .studiou-fpp-variants-table td {
  51. padding: 10px 14px;
  52. text-align: left;
  53. border-bottom: 1px solid #eee;
  54. }
  55. .studiou-fpp-variants-table thead th {
  56. background: #f7f7f7;
  57. font-weight: 600;
  58. border-bottom: 2px solid #ddd;
  59. }
  60. .studiou-fpp-variants-table .studiou-fpp-col-select {
  61. width: 40px;
  62. text-align: center;
  63. }
  64. .studiou-fpp-variants-table .studiou-fpp-col-price {
  65. white-space: nowrap;
  66. font-weight: 600;
  67. }
  68. .studiou-fpp-variant-row {
  69. cursor: pointer;
  70. transition: background 0.15s;
  71. }
  72. .studiou-fpp-variant-row:hover {
  73. background: #f5f9ff;
  74. }
  75. .studiou-fpp-variant-row.studiou-fpp-variant-selected {
  76. background: #e8f4fd;
  77. }
  78. .studiou-fpp-variant-row input[type="radio"] {
  79. margin: 0;
  80. cursor: pointer;
  81. }
  82. /* Upload area */
  83. .studiou-fpp-upload-info {
  84. color: #777;
  85. font-size: 0.9em;
  86. margin-bottom: 12px;
  87. }
  88. .studiou-fpp-upload-area {
  89. border: 2px dashed #ccc;
  90. border-radius: 8px;
  91. padding: 40px 20px;
  92. text-align: center;
  93. cursor: pointer;
  94. transition: border-color 0.2s, background 0.2s;
  95. position: relative;
  96. }
  97. .studiou-fpp-upload-area:hover,
  98. .studiou-fpp-upload-area.studiou-fpp-dragover {
  99. border-color: #2271b1;
  100. background: #f0f7ff;
  101. }
  102. .studiou-fpp-upload-icon {
  103. font-size: 48px;
  104. width: 48px;
  105. height: 48px;
  106. color: #999;
  107. display: block;
  108. margin: 0 auto 10px;
  109. }
  110. .studiou-fpp-upload-area:hover .studiou-fpp-upload-icon {
  111. color: #2271b1;
  112. }
  113. .studiou-fpp-upload-prompt p {
  114. margin: 0;
  115. color: #777;
  116. }
  117. .studiou-fpp-file-input {
  118. display: none;
  119. }
  120. /* Progress bar */
  121. .studiou-fpp-progress {
  122. margin-top: 15px;
  123. display: flex;
  124. align-items: center;
  125. gap: 12px;
  126. }
  127. .studiou-fpp-progress-bar {
  128. flex: 1;
  129. height: 20px;
  130. background: #eee;
  131. border-radius: 10px;
  132. overflow: hidden;
  133. }
  134. .studiou-fpp-progress-fill {
  135. height: 100%;
  136. background: #2271b1;
  137. border-radius: 10px;
  138. transition: width 0.3s;
  139. }
  140. .studiou-fpp-progress-text {
  141. font-weight: 600;
  142. min-width: 40px;
  143. text-align: right;
  144. }
  145. /* Preview */
  146. .studiou-fpp-preview {
  147. display: flex;
  148. align-items: center;
  149. gap: 15px;
  150. padding: 15px;
  151. background: #f9f9f9;
  152. border: 1px solid #ddd;
  153. border-radius: 6px;
  154. margin-top: 15px;
  155. }
  156. .studiou-fpp-preview-image {
  157. flex: 0 0 80px;
  158. }
  159. .studiou-fpp-preview-image img {
  160. max-width: 80px;
  161. max-height: 80px;
  162. border-radius: 4px;
  163. display: block;
  164. }
  165. .studiou-fpp-preview-info {
  166. flex: 1;
  167. display: flex;
  168. align-items: center;
  169. justify-content: space-between;
  170. gap: 10px;
  171. }
  172. .studiou-fpp-preview-name {
  173. font-weight: 500;
  174. word-break: break-all;
  175. }
  176. .studiou-fpp-remove-file {
  177. flex-shrink: 0;
  178. color: #b32d2e !important;
  179. border-color: #b32d2e !important;
  180. }
  181. .studiou-fpp-remove-file:hover {
  182. background: #b32d2e !important;
  183. color: #fff !important;
  184. }
  185. /* Actions / Add to cart */
  186. .studiou-fpp-actions {
  187. padding-top: 15px;
  188. border-top: 2px solid #eee;
  189. }
  190. .studiou-fpp-add-to-cart-btn {
  191. padding: 12px 30px !important;
  192. font-size: 1.1em !important;
  193. font-weight: 600;
  194. }
  195. .studiou-fpp-add-to-cart-btn:disabled {
  196. opacity: 0.5;
  197. cursor: not-allowed;
  198. }
  199. /* Cart uploaded photo preview */
  200. .studiou-fpp-cart-preview {
  201. margin-top: 8px;
  202. }
  203. .studiou-fpp-cart-preview img {
  204. max-width: 70px;
  205. max-height: 70px;
  206. object-fit: cover;
  207. border-radius: 4px;
  208. border: 1px solid #ddd;
  209. }
  210. /* Messages */
  211. .studiou-fpp-msg {
  212. padding: 10px 15px;
  213. border-radius: 4px;
  214. margin-bottom: 12px;
  215. font-size: 0.95em;
  216. }
  217. .studiou-fpp-msg-error {
  218. background: #fef1f1;
  219. color: #b32d2e;
  220. border: 1px solid #f5c6c6;
  221. }
  222. .studiou-fpp-msg-success {
  223. background: #ecf7ed;
  224. color: #1e7e34;
  225. border: 1px solid #c3e6c3;
  226. }
  227. .studiou-fpp-error {
  228. color: #b32d2e;
  229. font-style: italic;
  230. }
  231. /* Responsive */
  232. @media (max-width: 600px) {
  233. .studiou-fpp-product-header {
  234. flex-direction: column;
  235. }
  236. .studiou-fpp-product-image {
  237. flex: none;
  238. text-align: center;
  239. }
  240. .studiou-fpp-preview {
  241. flex-direction: column;
  242. text-align: center;
  243. }
  244. .studiou-fpp-preview-info {
  245. flex-direction: column;
  246. }
  247. }